oolinaroo 0 Report post Posted March 29, 2019 Hello! We using package "lightstreamer-client": "~6.1.4" (legacy-server-5.1.2) Successfully authenticated, subscribed and recive next events: CLIENT onPropertyChange [|LightstreamerClient|1|5|2|] SUBSCRIPTION onListenStart subscription=[|Subscription|5|0|1|1|2|] CLIENT onStatusChange CONNECTING CLIENT onStatusChange CONNECTED:STREAM-SENSING CLIENT onPropertyChange serverSocketName CLIENT onPropertyChange serverInstanceAddress CLIENT onPropertyChange keepaliveMillis CLIENT onStatusChange CONNECTED:HTTP-STREAMING SUBSCRIPTION onSubscription And never receiving event onItemUpdate: For testing we using marketId: { Markets: [ { MarketId: 401449250, Name: 'EUR/USD', Weighting: 300 } ] } Please help receive stream data. Share this post Link to post
Physicsman 25 Report post Posted March 29, 2019 Hi, To help us troubleshoot: Please provide the code snippets you are using to perform the login and subscription to the price stream. Which account operator are you with? Is it Forex.com or City Index? Kind Regards, PM Share this post Link to post
Physicsman 25 Report post Posted March 29, 2019 Hi, Thank you for the code snippet. Is your account with Forex.com or City Index? Also, are you using a Demo/Test or Live (real money) account? Kind Regards, PM Share this post Link to post
oolinaroo 0 Report post Posted March 29, 2019 Account on Forex.com It is Live account Share this post Link to post
Physicsman 25 Report post Posted March 29, 2019 Thanks. I'm sending you a forum private message with credentials to a Forex.com Demo/Test account that I know works fully with streaming price data. When you have a moment, please try using your code with the Test account and inform us of the result. If it works 100% with your code, then we can probably look into investigating your Live account and eliminate a problem in your code. If you see the exact same fault as you do with your Live account, then it's likely the problem is in your code and your Live account is fine. This quick trial will help us narrow down what we investigate further. Kind Regards, PM Share this post Link to post
oolinaroo 0 Report post Posted March 29, 2019 Thx! Same situation... this.subscription.setItems(["PRICE.401155666", "PRICE.401484347"]); /* { Markets: [ { MarketId: 401155666, Name: 'EUR/USD', Weighting: 958 }, { MarketId: 401484347, Name: 'EUR/USD', Weighting: 300 } ] } */ Rates not stream. Firewall is off. Share this post Link to post
Physicsman 25 Report post Posted March 29, 2019 OK - we're making progress. It looks as though the problem is somewhere in your code. We can look into that a bit deeper and see if we can spot anything. We'll reply again after we've looked it over. Kind Regards, PM Share this post Link to post
oolinaroo 0 Report post Posted March 29, 2019 Thank you! Waiting for feedback. Share this post Link to post
Physicsman 25 Report post Posted April 1, 2019 Hi, According to the Lightstreamer documentation at https://lightstreamer.com/docs/client_javascript_uni_api/Subscription.html#setItems: Quote Any call to this method will override any "Item List" or "Item Group" previously specified. It would appear in your code that this is redundant since your subscription call already specified an item list. Try commenting out the setItems code line and see if that helps. Kind Regards, PM Share this post Link to post
Physicsman 25 Report post Posted April 1, 2019 Sadly, we've reached the limits of our expertise in Lightstreamer since this forum is for support on the REST API. Your last recourse is to try the Lightstreamer official forums at: https://forums.lightstreamer.com/ and see if they are able to troubleshoot your code. Kind Regards, PM Share this post Link to post
oolinaroo 0 Report post Posted April 1, 2019 Also question: When we pass presented fields in streaming data: this.subscription = new this.ls.Subscription("MERGE",["item1","item2","item3","item4","item5"],["QuoteId","OrderId"]); this.subscription.setDataAdapter("QUOTES"); We have same problems like in "PRICES" (no any data) But if we add absent fields: this.subscription = new this.ls.Subscription("MERGE",["item1","item2","item3","item4","item5"],["stock_name","last_price"]); this.subscription.setDataAdapter("QUOTES"); We get: {"py":2,"oy":"item2","hu":true,"ja":{"Xb":null,"xb":2,"list":["stock_name","last_price"],"Vs":{"stock_name":1,"last_price":2}},"Pd":[1,2,null,null]} {"py":3,"oy":"item3","hu":true,"ja":{"Xb":null,"xb":2,"list":["stock_name","last_price"],"Vs":{"stock_name":1,"last_price":2}},"Pd":[1,3,null,null]} {"py":1,"oy":"item1","hu":true,"ja":{"Xb":null,"xb":2,"list":["stock_name","last_price"],"Vs":{"stock_name":1,"last_price":2}},"Pd":[1,1,null,null]} {"py":4,"oy":"item4","hu":true,"ja":{"Xb":null,"xb":2,"list":["stock_name","last_price"],"Vs":{"stock_name":1,"last_price":2}},"Pd":[1,4,null,null]} {"py":5,"oy":"item5","hu":true,"ja":{"Xb":null,"xb":2,"list":["stock_name","last_price"],"Vs":{"stock_name":1,"last_price":2}},"Pd":[1,5,null,null]} Share this post Link to post
oolinaroo 0 Report post Posted April 1, 2019 And I see in debug mode this data: lightstreamer.stream | DEBUG | 18:25:07,58 | Enqueuing received data {} lightstreamer.stream | DEBUG | 18:25:07,58 | Dequeuing received data {1 } lightstreamer.protocol | DEBUG | 18:25:07,59 | Command phase check {1 } lightstreamer.protocol | DEBUG | 18:25:07,59 | Received new update {( {1 1 * \/Date(1554132385392)\/ 73.104 73.517 73.311 * }) } lightstreamer.stream | DEBUG | 18:25:07,677 | New data received on connection opened using CORS-XHR {d(1,1,1,'\u005C/Date(1554132386011)\u005C/','73.105',3); } lightstreamer.stream | DEBUG | 18:25:07,677 | Enqueuing received data {} lightstreamer.stream | DEBUG | 18:25:07,677 | Dequeuing received data {1 } lightstreamer.protocol | DEBUG | 18:25:07,677 | Command phase check {1 } lightstreamer.protocol | DEBUG | 18:25:07,678 | Received new update {( {1 1 * \/Date(1554132386011)\/ 73.105 * * * }) } lightstreamer.stream | DEBUG | 18:25:07,926 | New data received on connection opened using CORS-XHR {d(1,1,1,'\u005C/Date(1554132386261)\u005C/','73.104',3); } lightstreamer.stream | DEBUG | 18:25:07,926 | Enqueuing received data {} lightstreamer.stream | DEBUG | 18:25:07,926 | Dequeuing received data {1 } lightstreamer.protocol | DEBUG | 18:25:07,926 | Command phase check {1 } lightstreamer.protocol | DEBUG | 18:25:07,927 | Received new update {( {1 1 * \/Date(1554132386261)\/ 73.104 * * * }) } But event "onItemUpdate" is not coming. Share this post Link to post
oolinaroo 0 Report post Posted April 1, 2019 Thank you! My problem is decided. Share this post Link to post
Physicsman 25 Report post Posted April 1, 2019 Great to hear you have managed to resolve the problem! Share this post Link to post