开云体育

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Problem allocation for placeOrder(app.nextorderId, FX_order('EURUSD'), order)


GUY
 
Edited

Good morning
i 'm french . sorry for my english

I'm working on the TWS API. Everything went very well until I got to the order with the PYTHON command

app.placeOrder (app.nextorderId, FX_order ('EURUSD'), order) Previously I had launched the order app.reqAccountUpdates (True, "U**")

The order has been transmitted well and is well placed on the TWS platform with the associated transmit. But that's where the bottom hurts. it is impossible for me to transmit the order because the 'allocation' is blank. I have to manually enter this allowance in order to be able to execute this order. I don tried to update the default settings like this with my account number U**

But nothing has changed . I am completely stuck in this ultimate step. Can you help me?

I'll take it back to you in advance.

[Edited by Moderator to remove account number]

best regards
guy

?

?


 
Edited

Moderator, You missed an account number in the example.
?
Best wishes,
?
M

On Fri, 5 Feb 2021, 17:34 GUY, <guy.bonnardel@...> wrote:

Good morning
i 'm french . sorry for my english

I'm working on the TWS API. Everything went very well until I got to the order with the PYTHON command

app.placeOrder (app.nextorderId, FX_order ('EURUSD'), order) Previously I had launched the order app.reqAccountUpdates (True, "U**")

The order has been transmitted well and is well placed on the TWS platform with the associated transmit. But that's where the bottom hurts. it is impossible for me to transmit the order because the 'allocation' is blank. I have to manually enter this allowance in order to be able to execute this order. I don tried to update the default settings like this with my account number U**

But nothing has changed . I am completely stuck in this ultimate step. Can you help me?

I'll take it back to you in advance.

[Edited by Moderator to remove account number]

best regards
guy

?

?

?

?


 

开云体育

Oops, thanks for pointing that out. Must do better!...

?

I'll edit it in the message archive, but of course all those who receive posts by email will have it in their Inbox.

?

I doubt any harm will come from it, but nevertheless I think it's unwise for members to include this sort of detail in their posts.

?

By the way, when posting something that should really only go the group owner/moderator, please send it to ?twsapi+owner@groups.io

rather than to the usual group email address. Posting to everyone just potentially makes the situation worse.

?

Richard King

Group Owner and Moderator