Search found 44 matches

by blk
Thu May 13, 2021 3:40 pm
Forum: Bookmap API
Topic: Trading on NinjaTrader8 from Bookmap via Java
Replies: 9
Views: 4851

Re: Trading on NinjaTrader8 from Bookmap via Java

Here is an example of how to send an order via Simplified API:   SimpleOrderSendParametersBuilder simpleOrder = new SimpleOrderSendParametersBuilder(alias, isBuy,                 size); simpleOrder.setLimitPrice(limitPrice); OrderSendParameters testOrder = simpleOrder.build(); api.sendOrder(testOrde...
by blk
Thu May 13, 2021 12:43 pm
Forum: Bookmap API
Topic: How to cancel orders at once?
Replies: 8
Views: 11384

Re: How to cancel orders at once?

Got it... Is there a way to capture the error messages when we try to update/cancel order via bookmap API ?

Lets say Rithmic returned "Atomic order operation in progress", I'm wondering if we can catch that message to try again after some time if the order is still active.
by blk
Thu May 13, 2021 12:32 pm
Forum: Bookmap API
Topic: Which event happens 1st - PositionUpdate vs OrderExecuted/Updated
Replies: 4
Views: 2784

Re: Which event happens 1st - PositionUpdate vs OrderExecuted/Updated

Got it, thanks for your reply. Is there a way we can expand the Rithmic or CQG L0 adapter to add new features such as server side volume stops?

 
by blk
Thu May 13, 2021 1:08 am
Forum: Bookmap API
Topic: Which event happens 1st - PositionUpdate vs OrderExecuted/Updated
Replies: 4
Views: 2784

Which event happens 1st - PositionUpdate vs OrderExecuted/Updated

Hi, Lets say we have an addon subscribed to orderListener and positionListener... Is there any guarantee on which event happens/arrives first to an API subscribed addon when you are filled? Does the position update is sent first to the addon or the order executed/filled ? Or Bookmap just sends all e...
by blk
Wed May 12, 2021 8:00 pm
Forum: Bookmap API
Topic: How to cancel orders at once?
Replies: 8
Views: 11384

Re: How to cancel orders at once?

I have another question... if I need to move X orders or update the size or X orders... Is there a recommended way to do it? Wondering if we can do it in batches to avoid Rithmic messages...

api.updateOrder for OrderMoveParameters and OrderResizeParameters
by blk
Wed May 12, 2021 12:36 pm
Forum: Bookmap API
Topic: How to cancel orders at once?
Replies: 8
Views: 11384

Re: How to cancel orders at once?

Ok, thanks for your help
by blk
Wed May 12, 2021 12:17 pm
Forum: Bookmap API
Topic: How to cancel orders at once?
Replies: 8
Views: 11384

Re: How to cancel orders at once?

Hi, thanks for your reply.  So using the batchId and batchEnd we can try something like this?   [size=100]long batchId = ThreadLocalRandom.current().nextLong(1000);[/size] for (int i = 0; i < orderIds.size() - 1; i++) {     api.updateOrder(new OrderCancelParameters(orderIds.get(i), batchId, false));...
by blk
Wed May 12, 2021 1:26 am
Forum: Bookmap API
Topic: How to cancel orders at once?
Replies: 8
Views: 11384

How to cancel orders at once?

Hi, (Addon using rithmic data and bookmap simplified API) Is there a way to send a cancel to all active orders without triggering the "Too many cancels last 30sec" error from Rithmic? This does not happen If I click in the cancel/flat TCP buttons so I'm wondering if there is a way to group the order...
by blk
Thu May 06, 2021 3:39 pm
Forum: Bookmap API
Topic: How to send messages between addons?
Replies: 3
Views: 2397

Re: How to send messages between addons?

Hi,

Thanks for your reply. I was able to figure it out based on your message.
 
by blk
Thu May 06, 2021 2:24 am
Forum: Bookmap API
Topic: How to send messages between addons?
Replies: 3
Views: 2397

How to send messages between addons?

Hi,

Is there an official way via the API to send messages between 2 different addons? I'm trying to avoid TCP calls as I'm using the Simplified API.

Thanks,