Order API for automated strategies

Market data, Trading, Technical support, Features requests, etc
zcsoka
Posts: 290
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 28 times

Order API for automated strategies

Post by zcsoka » Fri Sep 25, 2020 12:31 pm

Greetings,

I went through the docs, API and the forum and I seem not be find any information on automated trading. Manipulating already existing orders is shown, but creating new orders with type, price, validity I did not find. Could you please point me to any documentation on this topic? Many thanks in advance.

latnemele
Posts: 39
Joined: Wed May 13, 2020 12:27 am
Location: Europe
Has thanked: 12 times
Been thanked: 6 times

Re: Order API for automated strategies

Post by latnemele » Fri Sep 25, 2020 6:04 pm

Check out the javadoc.jar files in your installation path for the full API doc

blk
Posts: 44
Joined: Fri Nov 01, 2019 8:59 pm
Has thanked: 7 times

Re: Order API for automated strategies

Post by blk » Fri Sep 25, 2020 10:15 pm

If you are using the simplified api you can use the Api object we get during initialize method to send send orders:

api.sendOrder

sendOrder
void sendOrder(OrderSendParameters orderSendParameters)

Submit order with specified parameters
Parameters:orderSendParameters - parameters

zcsoka
Posts: 290
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 28 times

Re: Order API for automated strategies

Post by zcsoka » Mon Sep 28, 2020 11:46 am

I found it, many thanks, it as my fault, I was still using an old javadoc. 

Post Reply