All URIs are relative to https://localhost:5000/v1/api
Method | HTTP request | Description |
---|---|---|
iserver_contract_conid_info_and_rules_get | get /iserver/contract/{conid}/info-and-rules | Info and Rules |
iserver_contract_conid_info_get | get /iserver/contract/{conid}/info | Contract Details |
iserver_secdef_info_get | get /iserver/secdef/info | Secdef Info |
iserver_secdef_search_post | post /iserver/secdef/search | Search by Symbol or Name |
iserver_secdef_strikes_get | get /iserver/secdef/strikes | Search Strikes |
trsrv_futures_get | get /trsrv/futures | Security Futures by Symbol |
trsrv_secdef_post | post /trsrv/secdef | Secdef by Conid |
trsrv_secdef_schedule_get | get /trsrv/secdef/schedule | Get trading schedule for symbol |
trsrv_stocks_get | get /trsrv/stocks | Security Stocks by Symbol |
crate::models::InlineResponse20022 iserver_contract_conid_info_and_rules_get(conid, is_buy) Info and Rules
Returns trading related rules and info for contract
Name | Type | Description | Required | Notes |
---|---|---|---|---|
conid | String | IBKR contract identifier | [required] | |
is_buy | bool | Side of the market rules apply too. Set to true for Buy Orders, set to false for Sell Orders | [required] |
crate::models::InlineResponse20022
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Contract iserver_contract_conid_info_get(conid) Contract Details
Using the Contract Identifier get contract info. You can use this to prefill your order before you submit an order
Name | Type | Description | Required | Notes |
---|---|---|---|---|
conid | String | contract id | [required] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
serde_json::Value iserver_secdef_info_get(conid, sectype, month, exchange, strike, right) Secdef Info
Provides Contract Details of Futures, Options, Warrants, Cash and CFDs based on conid. To get the strike price for Options/Warrants use "/iserver/secdef/strikes" endpoint. Must call /secdef/search for the underlying contract first.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
conid | String | underlying contract id | [required] | |
sectype | String | FUT/OPT/WAR/CASH/CFD | [required] | |
month | Option<String> | contract month, only required for FUT/OPT/WAR in the format MMMYY, example JAN00 | ||
exchange | Option<String> | optional, default is SMART | ||
strike | Option<String> | optional, only required for OPT/WAR | ||
right | Option<String> | C for call, P for put |
serde_json::Value
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Veccrate::models::InlineResponse20020 iserver_secdef_search_post(symbol) Search by Symbol or Name
Search by underlying or company name. Relays back what derivative contract(s) it has. This endpoint must be called before using /secdef/info
Name | Type | Description | Required | Notes |
---|---|---|---|---|
symbol | InlineObject6 | [required] |
Veccrate::models::InlineResponse20020
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::InlineResponse20021 iserver_secdef_strikes_get(conid, sectype, month, exchange) Search Strikes
Query strikes for Options/Warrants. For available contract months and exchanges use "/iserver/secdef/search"
Name | Type | Description | Required | Notes |
---|---|---|---|---|
conid | String | contract id | [required] | |
sectype | String | OPT/WAR | [required] | |
month | String | contract month | [required] | |
exchange | Option<String> | optional, default is SMART |
crate::models::InlineResponse20021
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::InlineResponse20027 trsrv_futures_get(symbols) Security Futures by Symbol
Returns a list of non-expired future contracts for given symbol(s)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
symbols | String | list of case-sensitive symbols separated by comma | [required] |
crate::models::InlineResponse20027
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Vec<serde_json::Value> trsrv_secdef_post(body) Secdef by Conid
Returns a list of security definitions for the given conids
Name | Type | Description | Required | Notes |
---|---|---|---|---|
body | InlineObject7 | [required] |
Vec<serde_json::Value>
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::InlineResponse20026 trsrv_secdef_schedule_get(asset_class, symbol, exchange) Get trading schedule for symbol
Returns the trading schedule up to a month for the requested contract
Name | Type | Description | Required | Notes |
---|---|---|---|---|
asset_class | String | specify the asset class of the contract. Available values-- Stock: STK, Option: OPT, Future: FUT, Contract For Difference: CFD, Warrant: WAR, Forex: SWP, Mutual Fund: FND, Bond: BND, Inter-Commodity Spreads: ICS | [required] | |
symbol | String | Underlying Symbol for specified contract, for example 'AAPL' for US Stock - Apple Inc. | [required] | |
exchange | Option<String> | Native exchange for contract, for example 'NASDAQ' for US Stock - Apple Inc. |
crate::models::InlineResponse20026
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::InlineResponse20028 trsrv_stocks_get(symbols) Security Stocks by Symbol
Returns an object contains all stock contracts for given symbol(s)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
symbols | String | list of upper-sensitive symbols separated by comma | [required] |
crate::models::InlineResponse20028
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]