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
  • image.png

  • Posts

    • In the past 24 hours, the crypto market has seen a significant downturn in prices, offering an opportunity for holders to dollar-cost average (DCA) and potentially increase their gains when the market rebounds. However, many holders may lack the necessary reserves to take advantage of such opportunities. Fortunately, Bitget crypto loans offer users the ability to access crypto using their existing holdings as collateral, enabling them to leverage desired coins even in times of market volatility. With an ongoing event offering USDT at attractive interest rates, now is an opportune moment to take advantage before the market fully recovers, potentially maximizing gains.
    • The chain is unique in its quality of attaining a native token standard developed in coherence with the Ethereum Virtual Machine computation machine (EVM Compatibility) under the name of “KAP”, inspired by the Ethereum Request for Comments (ERC) Standard, allowing the KAP-20 token standard to be highly compatible, as well as enabling security assurance within the ecosystem.
    • GBTC already been dubbed by experts such as Kane Pepi as one of the best cryptocurrency presales in recent years after raising over $6 million during its hot presale event.
×
×
  • Create New...
us