Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (Quad), 6,361 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
asset subscription mechanism for broker API plugin #459053
04/17/16 19:25
04/17/16 19:25
Joined: Apr 2016
Posts: 38
madpower2000 Offline OP
Newbie
madpower2000  Offline OP
Newbie

Joined: Apr 2016
Posts: 38
I’m trying to develop some broker API plugin for Zorro, but lost a little with mechanism of an asset subscription.

I'm looked thru code at FXCMplugin.cpp - BrokerAsset() function implementation and don't see any code that push data from Broker to Zorro after subscribes an asset was established. Can you explain mechanism, how I should implement broker API event handler, when new data on subscribed asset arrived from broker? How should I pass it to Zorro?

Re: asset subscription mechanism for broker API plugin [Re: madpower2000] #459055
04/18/16 08:26
04/18/16 08:26
Joined: Jul 2000
Posts: 28,051
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,051
Frankfurt
When a price quote arrives, store it in a list together with the asset name. Then call fpProgress(0) for triggering Zorro. Zorro will then call BrokerAsset() for retrieving the price quote. If fpProgress is not called, the price will be retrieved at the next TickTime period.

Re: asset subscription mechanism for broker API plugin [Re: jcl] #459134
04/24/16 11:27
04/24/16 11:27
Joined: Apr 2016
Posts: 38
madpower2000 Offline OP
Newbie
madpower2000  Offline OP
Newbie

Joined: Apr 2016
Posts: 38
Thanx! Got it, code it!
But, should I unsubscribe, to cancel listening broker quotes? Or leave it until broker logout?

Re: asset subscription mechanism for broker API plugin [Re: madpower2000] #459258
05/02/16 06:49
05/02/16 06:49
Joined: Jul 2000
Posts: 28,051
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,051
Frankfurt
Leave it until logout. Unsubscription is not used by the plugin.


Moderated by  Petra 

Gamestudio download | 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