Skip to content

Can't place a order #36

@kshv190

Description

@kshv190

contract := new(ibapi.Contract)
contract.Symbol = "MSFT"
contract.Exchange = "SMART"
contract.Currency = "USD"
lmt := ibapi.NewLimitOrder("BUY", 244.26, 100)
ic.PlaceOrder(newOrderId(), contract, lmt)

The order doesn't show on TWS nor get a openorder message

{"level":"info","ts":1670503751.6900978,"caller":"ibapi@v0.0.0-20210809041850-da8ceb5942c1/wrapper.go:656","msg":"","reqID":0,"errCode":10149,"errString":"Invalid order id: 0"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions