Skip to content

Go lang wrapper for interactive brokers Client Portal (CP) web gateway

License

Notifications You must be signed in to change notification settings

webclinic017/goibcp

 
 

Repository files navigation

goibcp

Go lang wrapper for interactive brokers Client Portal (CP) web gateway

Install

go get -u github.com/sachinbhutani/goibcp

Usage Example

TODO

Coverage

Session

  • Tickle
  • Logout
  • Validate SSO
  • Authentication Status
  • Reauthenticate

IBCust

  • Entity Info

Portfolio Analyst

  • Account Performance
  • Account Balance Summary

Account

  • Portfolio Accounts
  • List of Subaccounts
  • Account Information
  • Account Summary
  • Account Ledger
  • Brokerage Accounts
  • Update Selected Account
  • PnL for selected Account

Portfolio

  • Portfolio Accounts
  • List of Subaccounts
  • Account Information
  • Account Allocation
  • Portfolio Positions
  • Position by conid per account
  • Invalidate Cache
  • Account Summary
  • Account Ledger
  • Position by conid

Trades

  • List of Trades

Order

  • Live Order
  • Place Order
  • Place Order (Support Bracket Order)
  • Place Order Reply
  • Preview Order
  • Modify Order
  • Delete Order

Market Data

  • Market Data
  • Market Data Cancel (Single)
  • Market Data Cancel (All)
  • Market Data History

Contract

  • Contract Info
  • Search by Symbol Name
  • Get strikes for options/warrants
  • Get available conids of future/option/warrant/cash/CFD
  • Secdef by Conid
  • Security Futures by Symbol

Scanner

  • get lists of available scanners
  • run scanner

PnL

  • PnL for the selected account

FAQs

Could not connect to IB CP Gateway, Ensure the CP gateway is running and logged in before connecting

X509 Certificate error

Please refer to the interactive brokers CP Web gateway FAQq in common question section at https://interactivebrokers.github.io/cpwebapi/faq.html

Since the gateway is running on your premises the certificate needs to be created/self-signed by you, or officially signed by a 3rd party. The gateway is similar to another webserver such as Tomcat which doesn’t provide a certificate along with the release.

https://www.sslshopper.com/article-how-to-create-a-self-signed-certificate-using-java-keytool.html

About

Go lang wrapper for interactive brokers Client Portal (CP) web gateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%