Dave-Vallance / bt-ccxt-store

Fork of Ed Bartosh's CCXT Store Work
MIT License
422 stars 185 forks source link

getposition() method returns empty object #12

Open pfederra opened 5 years ago

pfederra commented 5 years ago

Hi, Many thanks for your great work in integrating CCXT into Backtrader for trading live.

I was just wondering if this bug has been fixed. When i use the self.getposition() i receive empty object where I should get a list of my open positions:

Positions --- Position Begin

Also, is there equivalent methods existing in Backtrader to similar to CCXT api:

fetchOrders() fetchOpenOrders() fetchClosedOrders()

Many thanks.

rodrigo-brito commented 5 years ago

I had the same problem here! In the order confirmation, the gross and net value are empty too.

planet-winter commented 5 years ago

Same issue here. It seems the coresponding ccxt method does not return the needed information

Dave-Vallance commented 5 years ago

Thanks for raising the issue. I will take a look when I get time. (Likely timeframe within weeks rather than days).