Closed prafulrana closed 3 years ago
Hey,
Just merged in a type casting change. Untested of course as I've not got much time to follow up... let me know if that minor change worked!
fixed that issue!
keeps logging trailing stop triggered. Maybe I overheated my API usage? I will try after a bit with default settings again. Are you considering moving to the binance websockets api?
You think client.change_initial_leverage has to have a corresponding close?
you shouldn't get rate limited, the binance rate limits operate on an operation per second over x period of time basis. The bot shouldn't be doing more than 10 operations at any point in time.
Also deleted that log message, it had your api key in it! I recommend changing api keys if you can, it'll have been stored on gitmemory and other services by now
omg that was silly of me thanks
Yo going to close this issue. There is definitely something wrong though as I tried your exact logic in nodejs and it works fine: https://github.com/prafulrana/btc_futures_piranha/tree/main
Hey Harnick,
Not a python expert but I think there is something wrong with check_in_position. Its always returning False even though when its true. I tried printing out the positions array, everything seems right. The key is positionAmt, not sure if some funky string to float thing is happening during the compare.