Comments (1)
Ok i Found out that I can create callback like this:
x.Socket.listen.getTrades(this.getTrades);
getTrades(data: TRADE_RECORD[]) {
console.log(data);
}
This seems to be executed after around 10 seconds, is it possible to get this info faster? Could you tell me if this is right way to do it?
There is also tradeTransactionStatus
(http://developers.xstore.pro/documentation/2.5.0#tradeTransactionStatus)
but they say that recommended way is to use stream and getTradeStatus function (how to do it?)
Ok I got it, all is need to listen stream like this:
x.Stream.listen.getTradeStatus(this.getTrades);
from xapi-node.
Related Issues (20)
- onReject not called when host is unreachable HOT 7
- Unable to destroy instance when login fails HOT 7
- Stream commands not working in demo HOT 3
- How to get current trades HOT 1
- Tick prices showing up multiple times HOT 1
- getCandles listener never gets triggered HOT 3
- x.Stream.subscribe.getCandles bug (caused by xOpenHub server side logic) HOT 9
- x.getPriceHistory Data limit potentially exceeded HOT 1
- Missing Documentation for getPriceHistory HOT 1
- Replace dependecy Logger4 with Winston HOT 11
- Invalid parameters when close or delete position HOT 1
- parseStack.js:10 Uncaught ReferenceError: process is not defined HOT 3
- Publish the npm package as UMD
- streamSessionId available from login? HOT 2
- Issue with closing STC positions on XTB HOT 2
- issue with node 18 HOT 2
- getCommissionDef HOT 1
- XAPI.onReady() method being called endlessly for no reason HOT 3
- [REAL ACCOUNT] EX017 - You are trying to login using the account from a different platform HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xapi-node.