hadrianl / hadrianl/ibapi

Can't place a order

Open
#36 18 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
163
Forks
65
PR merge metrics
No merged PRs in 30d

Description

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"}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.