You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 16, 2026. It is now read-only.
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
totalandavailableamounts (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 providestotalamount andchange amount. But theavailableamount likely does not follow the samechange. Is there a way to compute/keep track of it?E.g. since
total = position_margin + order_margin + availableand position margin is part of position updates if I had theorder_marginI could compute the available amount myself. But I don't know where to getorder_marginfrom/how to keep track of it.Thanks,
L.