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

    • Hae, crypto degenerates! 👋 Your boy's got the inside scoop on a DeFi gem that's about to blow up! LOGX Network is dropping on Bitget on September 24th, and I'm all in. Here's why I'm losing sleep over this: It's not just another DeFi clone. We're talking AI-powered trading, gasless transactions, and perpetual markets. It's like the lovechild of a hedge fund and a crystal ball! These madlads raised $10.1M from big dogs like Hashed Emergent. That's some serious validation! 67% of tokens going to the community? They're practically handing us the keys to the kingdom! A Cross-chain liquidity from Binance, Coinbase, and OKX. It's like the Avengers of crypto, assembled in one place! Airdrop alert! 🚨 Claims going live on Arbitrum. Free money, anyone? Look, I'm just a dude who likes to ape into promising projects, but LOGX is ticking all my boxes. It's innovative, community-focused, and backed by some serious players. Am I saying mortgage your house for this? Hell no! But maybe skip a few lattes and throw some change at it? Could be your ticket to lambo-land! What do you think? Is LOGX the next big thing or am I huffing too much hopium? Drop your thoughts below! 👇 Remember, DYOR and don't bet your lunch money. But also... don't miss out on potentially the hottest DeFi project of 2024!
    • Cardano (ADA) has seen an impressive 9% increase in price, rising from $0.3251 on September 7 to $0.3545 by September 15. This surge is linked to the announcement from The Artificial Superintelligence Alliance that their FET token is now live on the Cardano blockchain. Why Cardano? The ASI alliance chose Cardano for its strong security, fast transaction speeds, and low fees. This decision has reignited interest in the Cardano ecosystem, and many investors are paying attention. ADA Price Target Looking ahead, analysts believe ADA might aim for $0.5 in the coming days. With a positive Relative Strength Index (RSI) supporting this prediction, the ADA price target of $0.5 seems attainable. A boost in buying volume could help ADA break through this level, and if it does, the next target could be around $0.6. Ecosystem Expansion Cardano is also growing with innovations like the Iagon bridge, which allows asset transfers between Cardano and Ethereum. Additionally, ADA holders are considering investments in promising projects like Rollblock, currently in its 6th presale and promising potential returns of up to 200x. Conclusion As the broader crypto market rebounds, will Cardano continue its upward trend, or will it face challenges ahead? Stay tuned!    
    • Soybean Elliott Wave Analysis The soybean market is currently retracing within a long-term corrective structure that has developed since the peak in June 2022. While short-term upside potential appears likely, the overarching trend suggests that a significant sell-off is poised to resume, potentially driving prices toward the lows seen in 2020. Long-Term Perspective Before the decline that began in June 2022, soybeans experienced a robust bullish impulse wave starting in May 2019, which propelled prices from approximately $806 to significant highs. However, over the past 26 months, the market has surrendered more than two-thirds of those gains. From an Elliott Wave standpoint, the current corrective phase is forming a three-swing pattern, a typical structure within corrective waves that indicates a complex retracement. Daily Chart Analysis On the daily chart, we observe this corrective structure unfolding at the primary wave degree. Wave A reached its conclusion at $1,249 in October 2023, followed by Wave B, which peaked at $1,398 in November 2023. Presently, we are witnessing the formation of Wave C to the downside. Within this unfolding Wave C, sub-waves (1), (2), and (2) of 5 have already been completed. The market is now experiencing a retracement in Wave (4), currently trading above the significant level of $1,000. A key question arises: how high can this Wave (4) rally extend? H4 Chart Analysis Zooming into the H4 chart, we find that Wave (4) has completed its first sub-wave, denoted as Wave A. The bullish reaction observed since September 11, 2024, suggests that Wave B may have concluded. For confirmation that Wave B has indeed ended and that we are transitioning into Wave C, the price must break above the high of Wave A. Should this scenario play out, we could expect Wave C to advance toward the $1,070 level. Alternatively, if the price fails to surpass the high of Wave A, it may indicate that Wave B is set to make another minor leg down, dipping slightly below $1,000 before establishing a solid support base to initiate Wave C. Technical Analyst : Sanmi Adeagbo Source : Tradinglounge.com get trial here!  
×
×
  • Create New...
us