Jump to content
  • 0

Retrieve current spread charge with API?


wilsonK

Question

How do I get the spread charge of an instrument with the REST/Streaming API? For example, I can see US 500 has a 1.5 spread charge right now in the web platform, but I can't seem to find the API for it.

Link to comment

3 answers to this question

Recommended Posts

  • 0

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.

Link to comment
  • 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
  • General Statistics

    • Total Topics
      22,102
    • Total Posts
      92,961
    • Total Members
      42,484
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    KeithM
    Joined 02/06/23 08:49
  • Posts

    • The US debt ceiling deal has cleared the second and last hurdle, with the Senate passing the bill to raise the ceiling. President Biden can now sign it into law, staving off a US default. Stocks in Asia rallied, and futures are pointing higher in Europe and the US. Meanwhile, a much stronger-than-expected ADP private payrolls report led to a sharp rise in the probability of another rate hike being seen in June, despite the US ISM manufacturing  prices paid index coming in lower-than-expected which is supportive of a Fed pause. Softer Eurozone headline and core inflation have seen ECB tightening expectations drop. All eyes are now on today's US Non-Farm Payrolls and hourly earnings data, out at 1.30pm.  
    • Good Morning, Please could the [LOUP] Innovator Deepwater Frontier Tech ETF be listed and made available for the ISA tax wrapper, pretty please? Many thanks, Sam
    • Okta Inc., Elliott Wave Technical Analysis Okta Inc., (OKTA:NYSE): Daily Chart, 2 June 23, OKTA Stock Market Analysis: Okta has been moving as expected, looking for further upside into wave {iii} despite the sharp correction we had with yesterday’s session.   OKTA Elliott Wave Count: Wave {ii} of 3. OKTA Technical Indicators: Below all averages. OKTA Trading Strategy: Looking for upside resumption into wave {ii}.   TradingLounge Analyst: Alessio Barretta Source : Tradinglounge.com get trial here!       Okta Inc., OKTA: 1-hour Chart, 2 June 23 Okta Inc., Elliott Wave Technical Analysis OKTA Stock Market Analysis: Looking for the correction in wave {ii} to be nearly completed, as we might resume lower into wave (c) to complete the correction, knowing we are very close to invalidation level. Should we break the red line we could then have been in a flat correction in wave 2.   OKTA Elliott Wave count:  Wave  (c) of {ii}. OKTA Technical Indicators: Below all averages. OKTA Trading Strategy: Looking for support at 66.7 to hold.
×
×
  • Create New...