Gamestudio Links
Zorro Links
Newest Posts
Error 072 & Orphaned Rogue Trade - Bug?
by DdlV
Yesterday at 04:09
Why history files are different since version 1.83?
by kvm
08/16/18 17:39
Stop, Trail etc
by AndrewAMD
08/16/18 15:00
Performance reporting showing Annual and monthly % returns
by jcl
08/16/18 11:09
Trade only within regular trading hours
by Jeff1228
08/16/18 10:18
Issue with inconsistent test results
by kvm
08/15/18 17:24
Access string content through another string
by ChrstphFr
08/15/18 11:30
AUM Magazine
Latest Screens
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
Who's Online
14 registered (mk_1, 3DCat, Michael_Schwarz, Angerbeer, alibaba, Ivan3333, LDM, 5 invisible), 441 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Ulenspegel, toto, FloMi, behr065, OptimusPrime
18027 Registered Users
Topic Options
Rate This Topic
#473091 - 06/12/18 22:36 Broker API: BrokerTrade: Pending Order gets rejected
AndrewAMD Offline
Senior Member

Registered: 02/21/17
Posts: 339
Loc: 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

Top
#473126 - 06/15/18 15:44 Re: Broker API: BrokerTrade: Pending Order gets rejected [Re: AndrewAMD]
jcl Offline

Chief Engineer

Registered: 07/22/00
Posts: 26431
Loc: Frankfurt
When BrokerTrade() returns 0, Zorro will remove that order from its list.

Top
#473128 - 06/15/18 15:57 Re: Broker API: BrokerTrade: Pending Order gets rejected [Re: jcl]
AndrewAMD Offline
Senior Member

Registered: 02/21/17
Posts: 339
Loc: Chicago
Thanks for the clarification.

Top



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

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