0
focar em
0
Seguidores

Como escrever contratos longos, curtos, abertos e fechados na OKEx?

Criado em: 2018-06-03 20:50:44, atualizado em: 2019-07-31 17:33:51
comments   3
hits   4310

A API nativa do okex permite a realização de transações através do tipo de campo 1: open + 2: open + 3: open + 4: open. Mas como escrever com uma API de inventores quantificados? É assim?

- O quê?

exchange.SetDirection(“buy”) exchange.Buy(Price, Amount)

Pinto

exchange.SetDirection(“closebuy”) exchange.Sell(Price, Amount)

Em aberto

exchange.SetDirection(“sell”) exchange.sell(Price, Amount)

O céu é plano.

exchange.SetDirection(“closesell”) exchange.buy(Price, Amount)