Giter VIP home page Giter VIP logo

ibcpgw-python-client's Introduction

swagger-client

Production version of the Client Portal Web API

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com//.git

(you may need to run pip with root permission: sudo pip install git+https://github.com//.git)

Then import the package:

import swagger_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import swagger_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AccountApi(swagger_client.ApiClient(configuration))

try:
    # PnL for the selected account
    api_response = api_instance.iserver_account_pnl_partitioned_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->iserver_account_pnl_partitioned_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://localhost:5000/v1/portal

Class Method HTTP request Description
AccountApi iserver_account_pnl_partitioned_get GET /iserver/account/pnl/partitioned PnL for the selected account
AccountApi iserver_account_post POST /iserver/account Updates currently selected account to the provided account
AccountApi iserver_accounts_get GET /iserver/accounts Brokerage Accounts
AccountApi portfolio_account_id_ledger_get GET /portfolio/{accountId}/ledger Account Ledger
AccountApi portfolio_account_id_meta_get GET /portfolio/{accountId}/meta Account Information
AccountApi portfolio_account_id_summary_get GET /portfolio/{accountId}/summary Account Summary
AccountApi portfolio_accounts_get GET /portfolio/accounts Portfolio Accounts
AccountApi portfolio_subaccounts_get GET /portfolio/subaccounts List of Sub-Accounts
ContractApi iserver_contract_conid_info_get GET /iserver/contract/{conid}/info Contract Info
ContractApi iserver_secdef_info_get GET /iserver/secdef/info Get available conids of future/option/warrant/cash/CFD
ContractApi iserver_secdef_search_post POST /iserver/secdef/search Search by symbol or name
ContractApi iserver_secdef_strikes_get GET /iserver/secdef/strikes Get strikes for Options/Warrant
ContractApi trsrv_futures_get GET /trsrv/futures Security Futures by Symbol
ContractApi trsrv_secdef_post POST /trsrv/secdef Secdef by Conid
ContractApi trsrv_stocks_get GET /trsrv/stocks Security Stocks by Symbol
FYIApi fyi_deliveryoptions_device_id_delete DELETE /fyi/deliveryoptions/{deviceId} delete a device
FYIApi fyi_deliveryoptions_device_post POST /fyi/deliveryoptions/device enable/disable device option
FYIApi fyi_deliveryoptions_email_put PUT /fyi/deliveryoptions/email enable/disable email option
FYIApi fyi_deliveryoptions_get GET /fyi/deliveryoptions Get delivery options
FYIApi fyi_disclaimer_typecode_get GET /fyi/disclaimer/{typecode} get disclaimer for a certain kind of fyi
FYIApi fyi_disclaimer_typecode_put PUT /fyi/disclaimer/{typecode} mark disclaimer read
FYIApi fyi_notifications_get GET /fyi/notifications Get a list of notifications
FYIApi fyi_notifications_more_get GET /fyi/notifications/more Get more notifications based on a certain one
FYIApi fyi_notifications_notification_id_put PUT /fyi/notifications/{notificationId} Get a list of notifications
FYIApi fyi_settings_get GET /fyi/settings Get a list of subscriptions
FYIApi fyi_settings_typecode_post POST /fyi/settings/{typecode} enable/disable certain subscription
FYIApi fyi_unreadnumber_get GET /fyi/unreadnumber Get unread number of fyis
IBCustApi ibcust_entity_info_get GET /ibcust/entity/info IBCust Entity Info
MarketDataApi iserver_marketdata_conid_unsubscribe_get GET /iserver/marketdata/{conid}/unsubscribe Market Data Cancel (Single)
MarketDataApi iserver_marketdata_history_get GET /iserver/marketdata/history Market Data History
MarketDataApi iserver_marketdata_snapshot_get GET /iserver/marketdata/snapshot Market Data
MarketDataApi iserver_marketdata_unsubscribeall_get GET /iserver/marketdata/unsubscribeall Market Data Cancel (All)
OrderApi iserver_account_account_id_order_order_id_delete DELETE /iserver/account/{accountId}/order/{orderId} Delete Order
OrderApi iserver_account_account_id_order_order_id_post POST /iserver/account/{accountId}/order/{orderId} Modify Order
OrderApi iserver_account_account_id_order_post POST /iserver/account/{accountId}/order Place Order
OrderApi iserver_account_account_id_order_whatif_post POST /iserver/account/{accountId}/order/whatif Preview Order
OrderApi iserver_account_account_id_orders_post POST /iserver/account/{accountId}/orders Place Orders (Support bracket orders)
OrderApi iserver_account_orders_get GET /iserver/account/orders Live Orders
OrderApi iserver_reply_replyid_post POST /iserver/reply/{replyid} Place Order Reply
PnLApi iserver_account_pnl_partitioned_get GET /iserver/account/pnl/partitioned PnL for the selected account
PortfolioApi portfolio_account_id_allocation_get GET /portfolio/{accountId}/allocation Account Allocation
PortfolioApi portfolio_account_id_ledger_get GET /portfolio/{accountId}/ledger Account Ledger
PortfolioApi portfolio_account_id_meta_get GET /portfolio/{accountId}/meta Account Information
PortfolioApi portfolio_account_id_position_conid_get GET /portfolio/{accountId}/position/{conid} Position by Conid
PortfolioApi portfolio_account_id_positions_invalidate_post POST /portfolio/{accountId}/positions/invalidate Invalidates the backend cache of the Portfolio
PortfolioApi portfolio_account_id_positions_page_id_get GET /portfolio/{accountId}/positions/{pageId} Portfolio Positions
PortfolioApi portfolio_account_id_summary_get GET /portfolio/{accountId}/summary Account Summary
PortfolioApi portfolio_accounts_get GET /portfolio/accounts Portfolio Accounts
PortfolioApi portfolio_allocation_post POST /portfolio/allocation Account Alloction (All Accounts)
PortfolioApi portfolio_positions_conid_get GET /portfolio/positions/{conid} Positions by Conid
PortfolioApi portfolio_subaccounts_get GET /portfolio/subaccounts List of Sub-Accounts
PortfolioAnalystApi pa_performance_post POST /pa/performance Account Performance
PortfolioAnalystApi pa_summary_post POST /pa/summary Account Balance's Summary
ScannerApi iserver_scanner_params_get GET /iserver/scanner/params get lists of available scanners
ScannerApi iserver_scanner_run_post POST /iserver/scanner/run run scanner to get a list of contracts
SessionApi iserver_auth_status_post POST /iserver/auth/status Authentication Status
SessionApi iserver_reauthenticate_post POST /iserver/reauthenticate Tries to re-authenticate to Brokerage
SessionApi logout_post POST /logout Ends the current session
SessionApi sso_validate_get GET /sso/validate Validate SSO
SessionApi tickle_post POST /tickle Ping the server to keep the session open
TradesApi iserver_account_trades_get GET /iserver/account/trades List of Trades for the selected account

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

ibcpgw-python-client's People

Contributors

jaikumarm 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.