avatar of niuyuhubotvs niuyuhubotvs
focar em Mensagem privada
0
focar em
0
Seguidores

exchange.SetContractType define this_week e next_week, GetPosition não funciona

Criado em: 2018-05-07 00:08:35, atualizado em:
comments   3
hits   1753

O código é o seguinte: for (i = 0; i < 2; i++) { exchange.SetContractType(ContractTypes[i]); var positions = exchange.GetPosition(); Log(‘148: ‘, positions); }

O log de código é o seguinte, ou seja, as duas posições obtidas são de this_week, e a expectativa é de obter informações sobre as posições desta_semana e da próxima_semana: 2018-05-06 09:22:00 Informações 148: [{“Price”:23.15,“Amount”:3,“FrozenAmount”:0,“Profit”:0.11199735,“Margin”:0.12958962,“MarginLevel”:10,“Type”:0,“ContractType”:“this_week”}] 2018-05-06 09:22:00 Informações 148: [{“Price”:23.15,“Amount”:3,“FrozenAmount”:0,“Profit”:0.11199735,“Margin”:0.12958962,“MarginLevel”:10,“Type”:0,“ContractType”:“this_week”}]

Quem é que pode nos ajudar a responder a estas perguntas, obrigado, obrigado!!!