Coder Social home page Coder Social logo

prograsaur / brb Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 3.0 310 KB

Interactive Brokers TWS API -- "The Big Red Button" - one button to cancel all orders and close all positions.

License: GNU General Public License v3.0

Python 100.00%
interactive-brokers python3 python-3-6 python-script ibapi example-app python-3 tws gui tkinter

brb's People

Contributors

prograsaur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

brb's Issues

where can I specify the order exchange type

I am getting below error, could you please help, i am trying this for NSE exchange (india)

(MainThread) 2022-09-14 14:01:05.016 INFO client.py:77 SENDING placeOrder b'\x00\x00\x01k3\x002\x00574032415\x00NIFTY50\x00OPT\x0020220915\x0017900.0\x00P\x001\x00\x00\x00INR\x00NIFTY2291517900PE\x00NIFTY\x00\x00\x00SELL\x0050.0\x00MKT\x00\x00\x00\x00\x00U10854059\x00\x000\x00\x001\x000\x000\x000\x000\x000\x000\x000\x00\x000\x00\x00\x00\x00\x00\x00\x00\x000\x00\x00-1\x000\x00\x00\x000\x00\x00\x001\x001\x00\x000\x00\x00\x00\x00\x00\x000\x00\x00\x00\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x000\x00\x00\x000\x000\x00\x00\x000\x00\x000\x000\x000\x000\x00\x001.7976931348623157e+308\x001.7976931348623157e+308\x001.7976931348623157e+308\x001.7976931348623157e+308\x001.7976931348623157e+308\x000\x00\x00\x00\x001.7976931348623157e+308\x00\x00\x00\x00\x000\x000\x000\x00\x00'
(MainThread) 2022-09-14 14:01:05.016 INFO wrapper.py:48 ANSWER positionEnd {}
(MainThread) 2022-09-14 14:01:05.018 INFO wrapper.py:48 ANSWER error {'reqId': 2, 'errorCode': 321, 'errorString': "Error validating request.-'bN' : cause - Missing order exchange."}
(MainThread) 2022-09-14 14:01:05.018 ERROR wrapper.py:56 ERROR 2 321 Error validating request.-'bN' : cause - Missing order exchange.
(MainThread) 2022-09-14 14:01:13.506 INFO brb.py:120 GUI MESSAGE: EXIT
(MainThread) 2022-09-14 14:01:13.506 INFO brb.py:114 Main logic stopped
(MainThread) 2022-09-14 14:01:17.051 INFO ibclient.py:63 detected KeyboardInterrupt, SystemExit
(MainThread) 2022-09-14 14:01:17.053 WARNING brb.py:66 Manual interruption!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.