Jump to content

oolinaroo

Members
  • Content count

    10
  • Joined

  • Last visited

  1. Good evening! We doing hedging on forex com and want trade with cross pairs. For example we trade absent pair CZK/RUB. We send 2 requests on exists pairs EUR/CZK and RUB/CZK. If one of the pair got bad response, want cancel both trades. Is it possible? Or maybe exists another way for decision our trouble?
  2. Thank you! My problem is decided.
  3. 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.
  4. 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]}
  5. 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.
  6. Account on Forex.com It is Live account
  7. 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.
×