Question: Does OKex use exchange.GetPosition (()) to set the current transaction pair to get hold information?
exchange.SetCurrency (
How do I get holdings on all the trading pairs?
The grassDocumentary with introduction Note: The GetPosition function retrieves the hold information for all hold varieties and returns an empty array if no hold is used, so before using this interface to return data, it is necessary to determine whether the returned data is an empty array. When the exchange is set to OKEX futures, if the contract is set to a transaction rate contract, holdings data for the week, next week, quarter, subsequent quarter are obtained, data type is an array of position structure When the exchange is set to OKEX futures, if the contract is set to a perpetual contract, an array of position structures containing perpetual contract holdings data is obtained