Jump to content
  • 0

Retrieve current spread charge with API?


wilsonK

Question

3 answers to this question

Recommended Posts

  • 0
On 14/04/2023 at 15:00, wilsonK said:

Hi, I think you misunderstood the question. I am not try to get the spread, what I wanted is the spread charges.

i.e. the extra spread IG put on top of the market spread when you open a position.

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

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

    • I've gone through its white paper & discovered it has good prospects, tho the price is down atm which is a good moment to DCA to hodl to the moon on the platform you mentioned.  
    • As the world becomes increasingly reliant on information, crypto and blockchain projects are shifting their focus towards the information economy. This project revolves around the creation, distribution, and utilization of information and technology, where knowledge and information are valuable assets driving wealth and growth. $NESS token enters the scene as a cryptocurrency designed to facilitate connections within this information economy. Furthermore, $NESS boasts a unique reward system that incentivizes active user participation, collaboration, and contributions to the underlying platform's success. To empower users, NessLabs offers online courses promoting mindful productivity and sustainable creativity. $NESS is expected to be listed on Bitget once sufficient liquidity is achieved. Users who deposit $NESS will have an opportunity to earn passively.  
    • The transition of Web2 gaming to Web3 has been nothing short of remarkable, easily welcome by the gaming community for the way-too-juicy perks the advancement offers that can’t be ignored. Another visionary gaming team is thrilled to unveil the successful launch of its highly anticipated token, $PORTAL. Portal ecosystem is aimed at onboarding one billion gamers into a fully interoperable ecosystem that transforms the gaming experience. The ecosystem utilizes frontier tech to create player-owned economies, effectively connecting gamers in deeper ways that has not been see before. As projected, one can think of the Portal platform as one where discovering and playing games is frictionless and easy. Through a single account layer, game enthusiasts can access Web3 games with a hitch-free experience, and seamlessly play games on all chains eschewing the need to bridge additional tokens to play.  Looking at its immense potential, gamers and investors across the global where ready to hop on its trading, however one glitch was easily noticed on Binance where most users are faced with deposit difficulties. The reverse is the case on other exchanges like Bitget, where millions of gamers across the globe are actively engaging in $Portal deposit activities, showing their diehard support for another Gaming project that is set to redefine the industry.  Have you onboarded the moving train called $PORTAL? Share your thoughts          
×
×
  • Create New...
us