Skip to content

Python SDK to access finance data from Interactive Broker's TWS

License

Notifications You must be signed in to change notification settings

chrjxj/ibclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IBClient

IBClient is an extension of IbPy. It provides higher layer abstraction APIs to interact with Interactive Brokers TWS. With these APIs, users could access market data, fundamental data, place order and review account using python script instead of TWS GUI.

Dependencies

Installation

  • Install from source
  1. download the source code or clone git repo: git clone https://github.com/chrjxj/ibclient.git
  2. run python setup.py install

Test

  1. change directory to tests folder, create a config file test-acc.yaml, e.g.
host: localhost
port: 7497
client_id: 666

account: FILL-YOUR-IB-ACCOUNT
starting_cash: 100000

stock:
  symbol: 1810
  security_type: STK
  currency: HKD
  exchange: SEHK
  sid: 123
  price_unit: 0.05

future:
  symbol: XINA50
  exchange: SGX
  expiry: 20200528
  tradingClass: CN
  1. run python -m unittest xxx_test.py

About

Python SDK to access finance data from Interactive Broker's TWS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages