-
Posts
82 -
Joined
-
Last visited
-
Days Won
13
Content Type
Profiles
Forums
Blogs
Events
Community Tutorials
Store
Everything posted by bug-or-feature
-
Why were bets auto rolled early?
bug-or-feature posted a question in IG Technical Support - Platform and App Help
I had a couple of bets on the Coffee Arabica September contract recently, total position was short £0.88 in the DEMO environment. You can see from the first screenshot that the expiry was 22 August 2023 My positions were rolled at 19.35 on 21 August though, see second screenshot. Can someone from IG tell me why they were rolled 24 hours earlier than expected please? Thanks -
There's something wrong with the futures based bets on the Netherlands 25 Index. Its possible to open bets on the August 23 contract, which expires on 16 August. But not possible to open bets on the September 23 contract, which expires on 15 September. There's a message on the dealing ticket that says "Closing only: Contract due to expire". Looks like the trading restriction has been applied to the wrong bet
-
Can I use the REST API to trade Stock CFDs?
bug-or-feature replied to vZ88's question in IG Technical Support - Platform and App Help
Yes, it is There is a complex set of constraints for order creation, because of the different order types. Look at the docs here. If you still need help, I would suggest providing details of what values you are setting for which fields; it is impossible to know what is wrong with the information you have supplied so far- 1 reply
-
- 1
-
CFD Cash Indices vs Future Indices
bug-or-feature replied to krisna's question in IG Trading Support - Dealing Questions
The funding charge is built into the spread for futures and forward bets. See here They roll automatically by default. You can control this feature in Settings. See here -
Unfortunately, it is not possible. The way IG manage epics for their dated spread bets is extremely unhelpful; they recycle epics. Right now EN.D.NG.Month2.IP represents the JUL-23 contract, and EN.D.NG.Month1.IP represents the AUG-23 contract Most likely, EN.D.NG.Month2.IP will be the SEP-23 contract. But, we cannot know for sure. They may skip a contract, ie skip September and go straight to October. Or, they could use another epic entirely, eg EN.D.NG.MONTH2.IP. Or anything else.
-
Do you want a daily funded bet (DFB), or a futures based bet? Its important to understand the difference, if you don't, go and read the docs some more. For DFB, the epic is wrong, should be IX.D.SPTRD.DAILY.IP For a futures bet, the expiry is wrong, should be 'JUN-23'. And you should really be using the September (SEP-23) bet, as June expires tomorrow
-
The epic is correct, although that epic represents the June contract, and it expires very soon. You may prefer to trade the September contract, currently 'IX.D.SPTRD.MONTH2.IP' But that is not the cause of your issues. You haven't provided any details about the code that caused it, so its impossible to give a solution.
-
Retrieve current spread charge with API?
bug-or-feature replied to wilsonK's question in IG Technical Support - Platform and App Help
No, I understood fine. I think perhaps you minunderstand how spread betting works. The spread is the charge, hence the name. It's not important anyway, the point is there no direct way to get the spread value from the API. You have to sample the bid and ask prices, and work it out yourself. The spread is dynamic, it changes according to market conditions, eg volatility. In my application I sample prices hourly using the Stream API, and calculate an average -
API 403 Error
bug-or-feature replied to protagarusra's question in IG Technical Support - Platform and App Help
Are you sure? The error message in your first message specifically says http:// -
API 403 Error
bug-or-feature replied to protagarusra's question in IG Technical Support - Platform and App Help
Have you tried using the secure URL instead? https://api.ig.com/gateway/deal/session instead of http://api.ig.com/gateway/deal/session -
Get Order Book orders flow via IG API
bug-or-feature replied to SergeyR's question in IG Technical Support - Platform and App Help
That's the wrong API, you want the REST API for orders https://labs.ig.com/rest-trading-api-guide https://labs.ig.com/rest-trading-api-reference/service-detail?id=692 The Streaming API is more useful for fast moving data, eg live prices -
Retrieve current spread charge with API?
bug-or-feature replied to wilsonK's question in IG Technical Support - Platform and App Help
Spreads on IG are not fixed, they're dynamic. If you want to get the spread right now, you can sample the prices using either API, and work it out for yourself. But, of course, the value may change at any time after that -
API Login Encryption
bug-or-feature replied to regalia's question in IG Technical Support - Platform and App Help
The best way to see how to prepare the request is to login with the REST API companion while your developer tools network tab is open, and have a look at the request objects. https://labs.ig.com/sample-apps/api-companion/index.html Alternatively, there's some code in the trading-ig library that does it, and it works https://github.com/ig-python/trading-ig -
It is not possible. Unfortunately, the way IG offer futures based spread bets makes it useless for historical data. Instead of having a unique epic for each contract, they recycle them. So, right now the bet for the June expiry FTSE 100 bet is IX.D.FTSE.MONTH1.IP and the September contract is IX.D.FTSE.MONTH2.IP but those are the only two epics. The December one will be back to MONTH1. Some futures have more than 2 epics, but they all recycle. Its very unhelpful. You'd be better off looking at the charts of real futures. Even then it is not easy, as often the price of a spread bet is a multiple of the underlying future. I have moaned about this in the past, but there semms to be no appetite to improve things from IG
-
Unable to authenticate with the IG API
bug-or-feature replied to mgwuk's question in IG Technical Support - Platform and App Help
There's an answer to your first question here: https://trading-ig.readthedocs.io/en/latest/faq.html#why-do-see-an-error-like-public-api-failure-stockbroking-not-supported For your second, I suggest logging into the web portal. There's probably some T&Cs to acknowledge, or similar. The API can't deal with that