Position sizes for SPOT and FUTURES

Hi,

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?

TIA

Spot don’t have position, please check details from this topic.

Thanks for the response :slight_smile:
Below, you said:

Spot trading doesn’t have positions like other instruments do because you are settling the trade immediately.

I thought I would use an example to understand things further.

MARGIN

orders = client.get_open_margin_orders(symbol=‘BNBBTC’)

FUTURES

futures_get_open_orders(**params)[source]
Get all open orders on a symbol.

  https://binance-docs.github.io/apidocs/futures/en/#current-open-orders-user_data

The 2 items show how one might 'get open orders"

My questions are as follows.

**

#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)

And I have also seen

SPOT

    orderbook = exchange.fetch_order_book ( in_symbol, params = params )

> QUESTION: Is there fetch_order_book for MARGIN?