[exchange.GetPositions(/syntax-guide#fun_exchange.getpositions) |
Get futures positions with data structure Position struct array (list) |
exchange.SetMarginLevel |
Set the leverage |
exchange.SetDirection |
Function used to set the exchange.Buy function, exchange.Sell function to carry out the futures contract order order direction |
exchange.SetContractType |
Set the contract code, for example: exchange.SetContractType("swap") function sets the contract code to swap , which sets the contract for the current operation to be a perpetual contract |
exchange.GetContractType |
Get the current set contract code |
exchange.GetFundings |
Get the current futures exchange perpetual contract funding rate data |