Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 177 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Broker API: BrokerTrade: Pending Order gets rejected #473091
06/12/18 20:36
06/12/18 20:36
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
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

Re: Broker API: BrokerTrade: Pending Order gets rejected [Re: AndrewAMD] #473126
06/15/18 13:44
06/15/18 13:44
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
When BrokerTrade() returns 0, Zorro will remove that order from its list.

Re: Broker API: BrokerTrade: Pending Order gets rejected [Re: jcl] #473128
06/15/18 13:57
06/15/18 13:57
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Thanks for the clarification.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1