Jump to content
  • 0

Finding epic for the market US 500 futures June 2023


vkalgos

Question

I built a script to place order through the API, based on an algo.

trying to use this

epic = "IX.D.SPTRD.MONTH1.IP" # US (SPX) - Futures mini
 
trying - is this correct?
 
I can query the prices etc, but when I placed the order using the API, the response code is 200 but on the activity tab I see this error
Rejected: Market not available online
 
 

could someone help me please?

For checking, I tried with another EPIC - - but again got an error, this is response code 400 and msg as "error.service.instrumentdata-invalid"

Link to comment

3 answers to this question

Recommended Posts

  • 0
The epic is correct, although that epic represents the June contract, and it expires very soon. You may prefer to trade the September contract, currently 'IX.D.SPTRD.MONTH2.IP'

But that is not the cause of your issues. You haven't provided any details about the code that caused it, so its impossible to give a solution.

 

 

 
Link to comment
  • 0

Thank you for confirming the Epic is correct one.

Please see the request I made with API companion just now. response comes back as status 200, but when I see in the list of transactions, it show the error msg. Please see the attached screenshots.

here is the body content of the request

{
    "epic": "IX.D.SPTRD.MONTH1.IP",
    "expiry": "DFB",
    "direction": "BUY",
    "size": "1",
    "level": "4474",
    "forceOpen": null,
    "type": "LIMIT",
    "currencyCode": "GBP",
    "timeInForce": "GOOD_TILL_CANCELLED",
    "goodTillDate": null,
    "guaranteedStop": "false",
    "stopLevel": null,
    "stopDistance": "8",
    "limitLevel": null,
    "limitDistance": "7"
}

 

 

Screenshot 2023-06-15 at 14.19.59.png

Screenshot 2023-06-15 at 14.20.07.png

Screenshot 2023-06-15 at 14.20.40.png

Link to comment
  • 0

Do you want a daily funded bet (DFB), or a futures based bet? Its important to understand the difference, if you don't, go and read the docs some more.

For DFB, the epic is wrong, should be IX.D.SPTRD.DAILY.IP

For a futures bet, the expiry is wrong, should be 'JUN-23'. And you should really be using the September (SEP-23)  bet, as June expires tomorrow

 

  • Like 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
  • General Statistics

    • Total Topics
      22,984
    • Total Posts
      95,305
    • Total Members
      43,594
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    pb8080
    Joined 22/09/23 16:31
  • Posts

    • Basically, they've renamed the BitKeep wallet to BitgetWallet while megaswap to Bitgetswap😑...!   Most of the wallets have that inbuilt swap features but only a few reputable centralised exchanges have that feature!
    • Almost perfectly said! Especially, diversification & risk appetite factor worked great for me! Imagine, having -300% with 20x Lev😑. Still didn't close that trade after gaining+200%! Tho high lev isn't recommended,but I've just shared my personal experience as an example of risk appetite!  End of the day, experience & self confidence matters at crypto(For most of the people).
    • Hi @Ilikethestonk, Unfortunately, we only offer stocks listed on the following markets for share dealing: UK: FTSE 100, FTSE 250, and many other small-cap UK stocks US: S&P 500, NASDAQ 100, and many other small-cap US stocks Germany: DAX, HDAX, MDAX Ireland: ISEQ Netherlands: AEX Belgium: BEL 20 Austria: ATX, WBI Australia: ASX/S&P 300 Thanks, KoketsoIG
×
×
  • Create New...
us