trading-ig icon indicating copy to clipboard operation
trading-ig copied to clipboard

A lightweight Python wrapper for the IG Markets API

Results 20 trading-ig issues
Sort by recently updated
recently updated
newest added

Greetings World! I was testing my simple code: ` buy = ig_service.create_open_position(epic='IX.D.DAX.DAILY.IP', direction='BUY') print(buy)` and the error appeared: Exception: error.security.account-token-invalid My requests using ig_service.fetch_open_positions() and ig_service.fetch_accounts() worked fine so I...

https://labs.ig.com/rest-trading-api-reference

Getting a deprecation warning on my code that was previously working fine. Error: `/app/app.py:2127: DeprecationWarning: trading_ig.lightstreamer.Subscription is deprecated, and will be removed in a future version; use the official Lightstreamer...

There is a bug in IG's implementation of their ``` /confirms/{dealReference} ``` endpoint, when you close a position. The method in this project is `IGService.fetch_deal_by_deal_reference()`. This is the request you...

Implement a better way to add instances of ClientListener, without needing to access the client object directly. See #333

enhancement

Hi all! Why is it that when I run the function 'fetch_historical_prices_by_epic_and_date_range()' I sometimes get a return that looks like this: MultiIndex([( 'bid', 'Open'), ( 'bid', 'High'), ( 'bid', 'Low'),...

see https://security.snyk.io/vuln/SNYK-PYTHON-REQUESTSCACHE-1089050 tests were run before and after installation to compare, and the result were similar: `17 failed, 92 passed, 3 skipped, 196 warnings, 49 errors` Most of the issues...

Hello, For all intents and purposes, since the latest library version upgrades, this causes futureWarnings in the conv_resol(resolution) function located in trading_ig\utils.py : ...\trading_ig\utils.py:49: FutureWarning: 'H' is deprecated and will...

Hi, anyone having issues with stream? I've tried sample 'stream_ig.py' with Live account credentials and looks like there is something with websocket connection. ``` Creating new v2 session for user...

If I leave my code running, without any API calls for 12 hours then my token expires. When a new REST call is made I receive the above logged warning...