Jump to content
  • 0

Bid Offer data missing in API response


NickCrusher

Question

Hi,

This is on a Demo account.  I don't see any bid/offer data, its always null.

 

"snapshot": {
        "marketStatus": "TRADEABLE",
        "netChange": -4.1,
        "percentageChange": -2.28,
        "updateTime": "08:24:54",
        "delayTime": 0,
        "bid": null,
        "offer": null,
        "high": 177.96,
        "low": 174.98,
        "binaryOdds": null,
        "decimalPlacesFactor": 2,
        "scalingFactor": 1,
        "controlledRiskExtraSpread": 0

Just a note, this only affects SHARES.  INDICES seem to be fine.
Can tech support have a look please?  Or if I'm doing something wrong, let me know.  Thanks!

Link to comment

15 answers to this question

Recommended Posts

  • 0

This only affects the CFD account type it seems, spread bet account receives the pricing information.

"snapshot": {
        "marketStatus": "TRADEABLE",
        "netChange": 1.5,
        "percentageChange": 0.11,
        "updateTime": "09:08:36",
        "delayTime": 0,
        "bid": 1325.2,
        "offer": 1329.3,
        "high": 1336.3,
        "low": 1313.7,
        "binaryOdds": null,
        "decimalPlacesFactor": 1,
        "scalingFactor": 1,
        "controlledRiskExtraSpread": 0
    }

I can add in some account switching logic when it comes to position management but that's a dirty workaround...
Link to comment
  • 0
12 hours ago, NickCrusher said:

*sigh* still no response... seeing as IG aren't the only ones offering an API based retail trading platform, I would've thought they'd pay a little more attention to things like this.

I'll give it another week before jumping over to Alpaca...

Since this post thread is not going to produce any result and will get ignored I wanted to ask you about Alpaca. I checked them and it seems to be only for Usaians. They ask for 30K to be a member of the club and if you are not a USA citizen they will ask you to send a form that  might or might not be valid to join. 
They seem to have all the goodies available, I wish we had something similar at this side of the pond. Why are you around here and not with them? What made you join the British? 

  • Sad 1
Link to comment
  • 0

Sorry, looks like my account is locked for some reason.. so created a backup

Hi jlz, I read alpaca had no minimum deposit for live personal accounts but you're right that its not available for UK citizens... which answers the last question, I'm actually in the UK.

Sadly this does mean alpaca won't be a suitable alternative.  There's still Interactive Brokers and TD Ameritrade but I've already developed my system for IG's API so I'd rather not move if a fix was on its way.

I've bugged a bunch of their devs via LinkedIn, hopefully someone fixes the problem.  I did find a workaround that works but its very ugly involving switching back and forth between the spreadbet and CFD account...

Link to comment
  • 0

I was involved this week in getting IB to work, they use a local java server that you have to run to create the gateway against their API so things are a bit more complex. Their docs are not clear and there aren't much examples to get started apart from what other devs have done on github. 

I will be sending what I have completed to:

https://github.com/oneangrytrader/brokerapiclients

They seem to have a much cheaper deal if you want to trade shares and they are available through the API so it is worth the effort to get it done.

  • Sad 1
Link to comment
  • 0

Actually it is more secure. Since you have to run the server yourself you won't need to store credentials or API keys anywhere. Not many can run a java server, you need to install the jdk and run specific commands. That creates an extra layer of security that will trust only the device you were able to set up.  You won't be able to access to your account from anywhere that is not running that server, meaning that only a device of your trust will be able to query they API. It is a 2FA for software developers. 

  • Great! 1
Link to comment
  • 0

Thanks for that jlz!  I think I'll explore the option this week.  Mind if I ask what fees you'd have to pay eg do you pay a fee for real time market access data?  I know IB has an inactivity fee but its manageable and to be honest, not too bad for what they offer.

Thanks again!

Link to comment
  • 0
1 hour ago, Crusher1 said:

Thanks for that jlz!  I think I'll explore the option this week.  Mind if I ask what fees you'd have to pay eg do you pay a fee for real time market access data?  I know IB has an inactivity fee but its manageable and to be honest, not too bad for what they offer.

Thanks again!

I am right now trying to get the API to work so I didn't look into the fees yet. I always consider that a second step, if I can't automate it I won't be able to use it so first I must get it to work. I think the benefit will come when buying shares, my plan is to keep using IG for Spread Betting and IB for shares. They offer the option to deal with shares through the API so that is something we don't get here. I don't understand why IG don't offer an API for share dealing, that would be a game changer for me. 

  • Like 1
  • Thought provoking 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • image.png

  • Posts

    • The BLUM project has recently gained attention in the cryptocurrency community due to several developments such as  Introduction of a mining game on the TON ecosystem, allowing users to earn $BLUM tokens.  Announcement of new strategic partnerships Upcoming features including Tribes and Memepad functionalities.  Active community engagement through events and rewards 5. Recognition from notable figures in the crypto space Key upcoming events: Token Generation Event (TGE) for the BLUM mining game scheduled for September 20, 2024 Coinciding airdrop of BLUM tokens to the community The project plans to provide liquidity on centralized exchanges such as Bitget and Binance, as well as decentralized exchanges like Uniswap, Curve, and PancakeSwap. These developments have contributed to increased discussions about BLUM on social media platforms, particularly Twitter. As the crypto landscape evolves rapidly, interested individuals are encouraged to stay informed about BLUM's progress through official channels and related TON communities like r/TONDiscussion.  As with any cryptocurrency project, potential participants should conduct thorough research and consider their own risk tolerance before engaging.
    • Counter Fire is poised to redefine the gaming industry with its innovative blend of competitive gameplay and blockchain technology. The game offers multiple modes, including team-based matches of quads, duos, and solos along with solo missions, with deep customization options and dynamic battle scenarios. While the core gameplay of Counter Fire is similar to PUBG, a battle-royal where the last-man or last-team standing wins in a survival gameplay, users earn while playing Counter Fires. The project has been buzzing the ecosystem as the airdrop claim went live today so users can claim their $CEC and await listing on 9th Sept. While gamers continue to claim their tokens, some analysts have start speculating that the project will redefine the gaming landscape citing the project partnership with likes of YoubiCapital, HASHKEY, KERNEL ventures and many more and the fact that the project raised over $5 million as the base for their argument. The project partnership with Bitget could also be a reason it continues to gain such exposure as players can only claim their token to the exchange. Though, as players claim their token to the exchange, they could benefit some reward from the 1 million $CEC reward pool. I still think many exchanges should list the token so gamers can have many choices.
    • Hi @feirb1, Thank you for your post. Please note that we offer T-Bills for trading on leveraged accounts. By trading these, you will be speculating on the price movements. This means that, when trading, you´ll never take ownership of an actual t-bill. Instead, you´ll take a position on the market either rising in value or falling. Thanks, KoketsoIG
×
×
  • Create New...
us