I am trying to get balances for positions that are open on the SPOT and the FUTURES.
For FUTURES, I am using: ` positions = exchange.fapiPrivate_get_positionrisk( )
My understanding is that if positionAmt ZERO then the position is closed. - and - if positionSide = BUY, then positionAmt = sum(ALL of the BUY POSITIONS created)
QUESTION: is this ONLY for FUTURES? I want this information for SPOT markets too - how can I get it?
#QUESTION 1: Do FUTURES, MARGIN and SPOT use information from the SAME Order book
**
I ask because I saw the item below (that refers to an orderbook for FUTURES). I also saw a way to get an order book for SPOT. I did not see a way to look at an orderbook for MARGIN:
FUTURES
def futures_order_book(self, **params):
"""Get the Order Book for the market
https://binance-docs.github.io/apidocs/futures/en/#order-book-market_data
"""
return self._request_futures_api('get', 'depth', data=params)