tsarbuig / LimitSwap

LimitSwap is fully functional DeFi Trading Bot. No fees. You just need to hold LIMIT Utility token in your wallet to use.
https://www.limitswap.com/
18 stars 30 forks source link

START_SELL_AFTER_TIMESTAMP and START_BUY_AFTER_TIMESTAMP to work with seconds #87

Closed MelnikovVV closed 2 years ago

MelnikovVV commented 2 years ago

Need to change START_SELL_AFTER_TIMESTAMP and START_BUY_AFTER_TIMESTAMP to work with seconds, in my opinion it's easier and simpler:

pause.seconds(int(settings['START_SELL_AFTER_TIMESTAMP'])) and pause.seconds(int(settings['START_BUY_AFTER_TIMESTAMP ']))

tsarbuig commented 2 years ago

You have another parameter for that bro : BUYAFTER_XXX_SECONDS

MelnikovVV commented 2 years ago

Well, then it is logical to add an additional parameter SELLAFTER_XXX_SECONDS to the file tokens.json

BUYAFTER_XXX_SECONDS - anti-bot parameter, it is used when buying is delayed inside the buy function But you need to delay the sale after the purchase by a certain number of seconds That is, the START_SELL_AFTER_TIMESTAMP parameter is suitable, but it is very inconvenient to use, because i set the delay for the task: wait a certain number of minutes after the purchase (date and time of purchase are unknown) You can add SELLAFTER_XXX_SECONDS to the Sell function, it will delay the sale after each purchase by a certain number of seconds

tsarbuig commented 2 years ago

so, if a SELL signal is found , you want the SELLAFTER_XXX_SECONDS parameter to delay the SELL swap ?

MelnikovVV commented 2 years ago

Hi Yes

tsarbuig commented 2 years ago

done in v5.0.4.4