Open tuncbb opened 5 years ago
I don't use Binance at the moment...
Can you provide a complete working example (minus API keys) to reproduce so I don't need to set everything up?
If so, I will take a look when I get chance. Might be a bit slow though
Same issue here. All buys and sells have their TradeID, Price, Cost and Comm parameters as zero:
BUY EXECUTED, Ref: 887, TradeID: 000, Size: 0.00400000000000000008, Price: 0.00000, Lvl: 0.03196, Cost: 0.00000, Comm 0.00000
SELL EXECUTED, Ref: 868, TradeID: 000, Size: -0.00400000000000000008., Price: 0.00000, Lvl: 0.03233, Cost: 0.00000, Comm 0.00000
Thus, no trades are ever registered, no analyzers work... I'll try to get a minimal example.
I tried the fork for binance exchange. ccxt_order price info returns zero. Thus, backtrader's order.executed.price method returns zero.
I guess this bug causes the issue below. "Position variables returns zero"