Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, Nymphodora), 1,012 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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,718
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,718
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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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,718
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

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