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

    • Dopamine emerges as a beacon of innovation in the world of cryptocurrency management, offering a non-custodial, secure, and anonymous mobile app wallet. With over two million downloads and a robust user base, Dopamine is reshaping the landscape of decentralized finance (DeFi) on both Android and iOS platforms. Let's delve into the features and functionalities that make Dopamine a must-have tool for navigating the cryptocurrency market. Key Features: 1. Comprehensive Portfolio Tracking: Dopamine's native token, $DOPE, empowers users to monitor their favorite projects from a vast collection of over 10,000 coins, ensuring informed decision-making in the dynamic crypto market. 2. Enhanced Security Measures: With built-in Anti-Money Laundering services, Dopamine enables users to safeguard their assets by identifying potential fraud and assessing risk scores associated with their wallets. 3. Real-Time Market Insights: Stay ahead of the curve with Dopamine's ability to track market trends and identify coins making significant moves, ensuring users remain informed and proactive in their investment strategies. 4. Cross-Chain NFT Transactions: Seamlessly send and receive NFTs across various blockchains, including Ethereum, BSC, Fusion, and more, providing users with unparalleled flexibility and interoperability. 5. Efficient Information Management: Dopamine simplifies data management by allowing users to save essential information and access it instantly, streamlining their crypto journey with convenience and ease. 6. Convenient Fiat On-Ramp: Facilitating seamless transactions, Dopamine enables users to buy crypto directly from their credit or debit card within the app, eliminating the need for multiple platforms and intermediaries. 7. DeFi Gaming Integration: Dive into the exciting world of decentralized finance gaming with Dopamine, offering users access to a diverse range of DeFi games directly from the app, adding a touch of entertainment to their crypto experience. With its innovative features, commitment to user empowerment and upcoming listing on Bitget exchange, Dopamine stands as a revolutionary platform that caters to the diverse needs of cryptocurrency enthusiasts. As the cryptocurrency market continues to evolve, It remains at the forefront, providing users with a secure, versatile, and intuitive solution for managing their digital assets and exploring new horizons in decentralized finance.
    • Name of stock: Adventus Mining Name of Stock Exchange: TSX Leverage or Share dealing: Share dealing Ticker: ADZN Country of stock: Canada
×
×
  • Create New...
us