E.g. since total = position_margin + order_margin + available and position margin is part of position updates if I had the order_margin I could compute the available amount myself. But I don't know where to get order_margin from/how to keep track of it.
Hello,
is there a way to get/compute 'available balance' based on WS notifications?
When REST API is used to obtain account balance (https://www.gate.io/docs/developers/apiv4/en/#query-futures-account) the information includes
total
andavailable
amounts (and doesn't include any sort of 'valid as of' time). WS notification (https://www.gate.io/docs/developers/futures/ws/en/#positions-notification) only providestotal
amount andchange amount
. But theavailable
amount likely does not follow the samechange
. Is there a way to compute/keep track of it?E.g. since
total = position_margin + order_margin + available
and position margin is part of position updates if I had theorder_margin
I could compute the available amount myself. But I don't know where to getorder_margin
from/how to keep track of it.Thanks, L.