Some problems with the OKEX contract

Author: duan_508, Created: 2019-02-09 00:38:02, Updated: 2019-02-11 12:50:00

1. how to get okx contracts open after setting good trading pairs, multiplier See exchange.GetAccount in the API documentation (().Stocks is the current available collateral for the contract, not the number of sheets

When the contract uses exchange.Buy ((Price, Amount), the unit of Amount is the bill, right?

3. exchange.GetPosition (().Profit (Note: OKCoin futures refer to a surplus in the case of a full-stock stock, not a holding profit or loss) In the case of a full-stock, is the number that Profit returns a percentage or fractional ratio, or is it the number of bitcoins that actually lost?


More

The grass1. Calculate on your own 2. Yes 3. the number of bitcoins that should be realized in the surplus can be determined in the account