Type/to search
3
Follow
0
Followers
exchange.Buy(Preço, Quantidade) não retornou um ID
Help
Created 2022-05-06 14:35:59  
 2
 1094

ID=exchange.Buy(Price, Amount)
O ID que você deseja obter é NULL, o que impede a execução do código seguinte.
Se usarmos a função _C, será que isso nos levará a fazer compras repetidas?
Como fazer isso até que ele retorne a identificação e continue executando para baixo?

Related Recommendations
Comment
All comments (2)

    下单不要重试,可能会造成重复下单。如果id没有返回,就读取下账户,检查下未成交订单,然后再决定是否重新下单

    4 years ago

    您好,可以使用GetOrders函数查询未成交的订单,如果订单已经成交,可以使用exchange.IO函数查询交易所的订单成交记录,最近一个成交的应该就是。

    4 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)