Coder Social home page Coder Social logo

forex-connect's People

Contributors

adukhovskoy avatar adukhovskoy-gehtsoft avatar konst-toporov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

forex-connect's Issues

'terminate called without an active exception' when launching a second script using the same credentials on real account

I am experience an issue with using two (or more) Python scripts connecting to the same trading account. This is not happening for practice accounts. The api fails when I launch a second script as soon as I connect to fxconnect using the same account (run fxcm.login(...)).

My Python version is 3.6.8, I'm on Ubuntu 18.04.2 LTS. I have tried different releases of forecxonnect (1.6.3 and 1.6.0).

On 1.6.3 and 1.6.2:
When I run one script connected to fxcm and launch a second one, the first one fails with the error 'terminate called without an active exception'.
On 1.6.0:
When I run one script connected to fxcm and launch a second one, the second one works and the first one just hangs without any error messages. If I try to cancel it by pressing Ctrl+C, nothing happens. If I launch the first one again in new terminal, it works (but this is still a problem because I need the first one running). So, evey time I launch a new script, the running one fails.

Bug: TableListener - on_changed callback for Ticks

Hi,
I think the TableListener C code has a timestamp bug, because the timestamp for each update is not set to milliseconds, only showing the seconds.

For example I currently get the following timestamps.
2019-06-24 19:13:43
2019-06-24 19:13:43
2019-06-24 19:13:43
2019-06-24 19:13:43
2019-06-24 19:13:43

Should be something like this.
2019-06-24 19:13:43.022
2019-06-24 19:13:43.053
2019-06-24 19:13:43.068
2019-06-24 19:13:43.070

This is a fairly critical bug because there is no way to eliminate 'out of order' ticks/updates, would appreciate if someone could look into it ASAP.

Cheers

James

Android Samples are outdated - other available samples have a login bug

Android samples present in this repo are outdated.

The last version available seems to be here : http://www.fxcodebase.com/wiki/index.php/Download in the 1.6 file : ForexConnectAPI-1.6-Android.tar.gz

Also, regarding these samples in ForexConnectAPI-1.6-Android.tar.gz :

  • The FXTSMobile sample crash on wrong password input

  • The GetReport sample don't

Can you please explain what cause the crash ? I can't find a way to correct it in FXTSMobile sample

Thanks !

Instrument not tradeable with a demo account

Hi,

I am using forexconnect in python to do trading with a demo account. I am able to trade on tradingview but not with the api. An example was at 08:44gmt (on thursday) where I was able to open a position on trading view on CORNF but not with python. I was able to do that on a previous demo account (2 weeks ago) but not on the new one I am working with.

Do you have any idea why?

Many thanks

Ventura OS, iMac

pip install forexconnect
ERROR: Could not find a version that satisfies the requirement forexconnect (from versions: none)
ERROR: No matching distribution found for forexconnect

Build Live History

I was reading your sample code for your build live history and was wondering how do you build it for different time frames? Like if I wanted it for 4 hours. and as well, how do you add the live history to a dataframe?

Segfault due to hard coded timeout values

SessionStatusListener.py, ResponseListener.py and TableManagerListener.py all have a hard-coded wait(30) in them. Under various circumstances, that wait can be exceeded. In such a case, the system can segfault and core-dump.

There are a number of issues here:

  • The end user is not given the option to set their own timeout for this value. This should be a parameter exposed in the constructor or other area that allows the user to set the value.
  • The segfault is not handled by the code in question.
  • Ideally, the error would be captured and sent back to the end user as an actionable message.

What should happen is:
Timeout -> 'Tablemanager timeout awaiting [possibly 5he callstack]. Waited ** seconds without response'
Now the client should be able to take that information and, increase the allowed timeout via the configurable value, re-evaluate the code their using to see if there is an issue, or reach out to FXCM to investigate issues with slow processing (in the case of things like orders).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.