I have been trying to work around this problem for a few days now. Basically at this point i think ther's an issue in the code?
When i try to send the following API alert:
{
"ticker" : "BTCUSD",
"exchange" : "BYBIT",
"time" : "2022-04-10T01:44:17Z",
"action" : "Buy",
"price" : 44153.23,
"message" : "entry",
"passphrase" : "123",
"subaccount": "MYBYBITACCOUNT"
}
i get the following response:
i have also tried removing everything but the message, passphrase, subaccount and ticker and exchange but i still had the same issue. Seems like then if i went in the code itself and edited the open_size = position['size'] to a fixed number it then worked? Anyway, it seems to me like ther's really an issue in orders = order(data) in app.py.
Did something change in the bybit's api that needs changing?
I'd appreciate if anyone could push me in the right direction.