Broker API: BrokerTrade: Pending Order gets rejected

Posted By: AndrewAMD

Broker API: BrokerTrade: Pending Order gets rejected - 06/12/18 20:36

jcl,

I have a question regarding the following scenario:

* Plugin is orders-only (NFA)
* Zorro calls BrokerBuy2. Plugin places the order. Broker confirms that the order is in a "pending" state and supplies a UUID. Plugin therefore returns -1 and outputs this UUID.
* Broker rejects the pending order for some reason. For example, the order expired.
* Zorro specifies this UUID and then calls BrokerTrade, nTradeID=-1.

Question: How is the plugin supposed to communicate that the pending order has been suddenly rejected?


Aside: For context, I will cross-reference this thread:
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=469209&page=1
Posted By: jcl

Re: Broker API: BrokerTrade: Pending Order gets rejected - 06/15/18 13:44

When BrokerTrade() returns 0, Zorro will remove that order from its list.
Posted By: AndrewAMD

Re: Broker API: BrokerTrade: Pending Order gets rejected - 06/15/18 13:57

Thanks for the clarification.
© 2024 lite-C Forums