Jump to content
  • 0

Can I use the REST API to trade Stock CFDs?


vZ88

Question

Just wondered if it's possible to use the REST API to trade Stock CFDs?

Already got a demo account running and I'm trying to use the API Companion to create an order, but I can't seem to make it to work.

I use /positions/otc, and when I fill all the fields I could I get this error message:

{ "errorCode": "validation.pattern.invalid.request.epic" }

Kindest regards.

Edited by vZ88
Link to comment

1 answer to this question

Recommended Posts

  • 0
On 02/08/2023 at 16:05, vZ88 said:

Just wondered if it's possible to use the REST API to trade Stock CFDs?

Yes, it is

 

On 02/08/2023 at 16:05, vZ88 said:

Already got a demo account running and I'm trying to use the API Companion to create an order, but I can't seem to make it to work.

I use /positions/otc, and when I fill all the fields I could I get this error message:

{ "errorCode": "validation.pattern.invalid.request.epic" }

There is a complex set of constraints for order creation, because of the different order types. Look at the docs here.  If you still need help, I would suggest providing details of what values you are setting for which fields; it is impossible to know what is wrong with the information you have supplied so far

  • 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

    • Dear @zappa_69, Retail clients can't trade most US ETFs because of the PRIIPS (Packaged retail and insurance-based investment products) regulation. All European and UK retail clients are subject to this. This regulation covers (inter alia):  • Foreign Exchange (FX) Transactions • Over The Counter Derivatives • Exchange Traded Derivatives (including ETFs, ETCs & ETNs). As such, no retail client can trade on any of the above.  Thanks,  KoketsoIG
    • Dear @neueneuen, Thank you for the post. Please note that we will provide more information on this as soon as we have feedback from the relevant team. Thank, KoketsoIG
    • Pepe (PEPE) is showing signs of a potential 60% rally as it tests a sliding resistance level, fueled by significant whale purchases. Successful breakouts may lead to a substantial 56% upward advance as whales accumulate during dips. However, caution is advised, with the bullish outlook dependent on maintaining support at $0.00000581. Recent price movements suggest Pepe's consolidation phase may be ending, potentially signaling a trend reversal. Confirmation of a breakout is crucial before anticipating further gains. Pepe price has oscillated between $0.00000581 and $0.0000109 for seven weeks, with a potential retest of the flipped range low indicating a possible uptrend continuation. A decisive break above the declining resistance level could drive Pepe towards $0.00000835, with a surge in buying activity potentially pushing the price to $0.0000109, representing a significant gain. Long-term investor sentiment is improving, with the 30-day MVRV indicating a shift in favor of acquiring discounted altcoins from short-term sellers. While the outlook for Pepe remains bullish, a breach of support at $0.00000581 could challenge the bullish narrative, potentially resulting in a 15% decline and retesting of lower support levels.    
×
×
  • Create New...
us