Closed mafianekcek closed 4 months ago
Hello, Thanks for your documented bug report. I've been able to reproduce the problem; but at the moment I don't see any reason for this as those API calls implementation are quite basic. I will look at this deeper when I have some free time. Regards
src/tests/unit/api/positions.test.ts
console.log
positionMultiEnd 45
at IBApi.<anonymous> (src/tests/unit/api/positions.test.ts:96:17)
at Array.forEach (<anonymous>)
console.log
cancelPositionsMulti sent 46
at IBApi.<anonymous> (src/tests/unit/api/positions.test.ts:99:17)
at Array.forEach (<anonymous>)
console.log
reqPositionsMulti sent 47
at IBApi.<anonymous> (src/tests/unit/api/positions.test.ts:102:17)
at Array.forEach (<anonymous>)
FAIL src/tests/unit/api/positions.test.ts
IBApi Tests
✓ Test reqPositions / cancelPositions (86 ms)
✕ Test reqPositionsMulti / cancelPositionsMulti (62 ms)
● IBApi Tests › Test reqPositionsMulti / cancelPositionsMulti
Failed: "[46] Error validating request.-'bj' : cause - Model name '1' is incorrect. Valid model name: ''; 'Core'; (#321)"
I got it! :) I will publish a fix in the next few days
Fixed in 1.3.26
Hello, I just found a bug when using cancelPositionsMulti (with Advisory demo account). I am not sure where exactly the problem is (thats why I am writing this topic) but basically it doesnt work and after using this command the whole API breaks (sending random messages to the API etc..)
Here is the script which you can use to reproduce this bug: test.js:
test.js output:
The behavior when using the official Python API client is normal, here you can see the script used and the output.
test.py:
test.py output:
Could you please check this issue? Thank you <3