Coder Social home page Coder Social logo

goibcp's Introduction

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

goibcp's People

Contributors

sachinbhutani avatar

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.