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

    • Do you mean daily check-in the app could earn me 1 SOL? please how do i participate?
    • Hey everyone! 🌟 I recently came across the Bitget GoldVerse Community Campaign, and I think it's something you might want to check out, especially if you're into crypto gaming and airdrops. This campaign is exclusively for new Bitget APP users who register and download through a specified link. GoldVerse is a launch platform based on the TON ecosystem, designed to provide a fair, transparent, and secure environment for emerging projects. It's quickly becoming one of the most trusted token issuance platforms on TON, focusing on fairness, transparency, and community involvement. One of the coolest features is the GoldVersebot Mini-app on Telegram. Within just 10 days of its launch, it achieved over 1 million users! The game is super engaging—you can mine GDV coins by tapping in the Social Game, complete tasks, participate in activities, and invite friends to earn $GDV If you're looking for a fun way to earn some crypto and be part of a growing community, this might be worth your time. Plus, with the Bitget event, there are even more opportunities to earn rewards. Happy mining! ⛏️💰
×
×
  • Create New...
us