bt-ccxt-store icon indicating copy to clipboard operation
bt-ccxt-store copied to clipboard

getposition() method returns empty object

Open pfederra opened this issue 5 years ago • 3 comments

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

  • Size: 0
  • Price: 0.0
  • Price orig: 0.0
  • Closed: 0
  • Opened: 0
  • Adjbase: None --- Position End

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

fetchOrders() fetchOpenOrders() fetchClosedOrders()

Many thanks.

pfederra avatar Mar 26 '19 14:03 pfederra

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

rodrigo-brito avatar Apr 14 '19 17:04 rodrigo-brito

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

planet-winter avatar May 04 '19 08:05 planet-winter

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

Dave-Vallance avatar May 06 '19 19:05 Dave-Vallance