Comments (2)
Maybe one solution is to have
Mida.logout()
of the account
Mida.reconnect()
to the account
Mida.destroy()
to destroy the mida object
Mida.getConnectionStatus()
or something like this
or ideally have an event
that tells you when you've been kicked out of cTrader.
What I also found is if I call Mida.login()
twice on the cTrader account I get an error. Details in #38
from mida.
I think the issue is with the big getPepperstonAccount()
.
I think after a period it gets kicked out.
I've been watching when the tick event doesn't produce a tick for 30 seconds and tried to removeEventListener
and then connect again. On re-connection it still gives no ticks.
from mida.
Related Issues (20)
- Historic Data HOT 5
- objects are null in console.log HOT 6
- Add a function / method that helps calculate take profit and stop loss price points on all symbols. HOT 3
- Account and Balance Update on cTrader
- Profit calculation on currency pairs with JPY as the quote currency is not accurate. HOT 1
- Changing the label field HOT 6
- Mida.login error makes object undefined HOT 4
- Create fallback symbols
- placeOrder() timeInForce has no effect HOT 3
- Event based mechanism to determine broker's server open and close. HOT 2
- Create "connect" and "disconnect" events HOT 1
- Mida instances HOT 4
- .toNumber() for MidaDecimal HOT 2
- composePeriods() sets incorrect values HOT 4
- marketWatcher.on("period-close"...) emits wrong timeframe HOT 2
- Error setStopLoss HOT 11
- Mida login on AWS lambda HOT 6
- Adding a custom id to a MidaTradingAccount HOT 4
- Closed Position Detail 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 mida.