Does OKex use exchange.GetPosition (()) to set up the current transaction pair to access the holding information?

Author: yesnbst, Created: 2021-09-27 16:32:45, Updated:

Question: Does OKex use exchange.GetPosition (()) to set the current transaction pair to get hold information? exchange.SetCurrency ( the current trading pair);

How do I get holdings on all the trading pairs?


More

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