3个稳定版本
使用旧的Rust 2015
3.0.0 | 2021年12月1日 |
---|---|
2.0.0 | 2021年2月13日 |
1.0.0 | 2019年1月28日 |
#1472 in Web编程
1MB
24K SLoC
swagger的Rust API客户端
客户端门户Web API
概述
此API客户端是由swagger-codegen项目生成的。通过使用来自远程服务器的swagger-spec,您可以轻松生成API客户端。
- API版本:1.0.0
- 包版本:1.0.0
- 构建包:io.swagger.codegen.languages.RustClientCodegen
安装
将包放在您的项目文件夹下,并在导入中添加以下内容
"./swagger"
API端点文档
所有URI均相对于https://127.0.0.1:5000/v1/api
类 | 方法 | HTTP请求 | 描述 |
---|---|---|---|
AccountApi | iserver_account_pnl_partitioned_get | Get /iserver/account/pnl/partitioned | 所选账户的PnL |
AccountApi | iserver_account_post | Post /iserver/account | 切换账户 |
AccountApi | iserver_accounts_get | Get /iserver/accounts | 经纪账户 |
AccountApi | portfolio_account_id_ledger_get | Get /portfolio/{accountId}/ledger | 账户账簿 |
AccountApi | portfolio_account_id_meta_get | Get /portfolio/{accountId}/meta | 账户信息 |
AccountApi | portfolio_account_id_summary_get | Get /portfolio/{accountId}/summary | 账户摘要 |
AccountApi | portfolio_accounts_get | Get /portfolio/accounts | 投资组合账户 |
AccountApi | portfolio_subaccounts_get | Get /portfolio/subaccounts | 子账户列表 |
AlertApi | iserver_account_account_id_alert_post | Post /iserver/account/{accountId}/alert | 创建或修改警报 |
AlertApi | iserver_account_alertid_get | Get /iserver/account/alert/:id | 获取警报的详细信息 |
AlertApi | iserver_account_mta_get | Get /iserver/account/mta | 获取MTA警报 |
AlertApi | iserver_accountaccount_id_alert_activate_post | Post /iserver/account/:accountId/alert/activate | 激活或停用警报 |
AlertApi | iserver_accountaccount_id_alertalert_id_delete | Delete /iserver/account/:accountId/alert/:alertId | 删除警报 |
AlertApi | iserver_accountaccount_id_alerts_get | Get /iserver/account/:accountId/alerts | 获取可用的警报列表 |
CCPBetaApi | ccp_account_get | Get /ccp/account | 经纪账户 |
CCPBetaApi | ccp_auth_init_post | Post /ccp/auth/init | 启动CCP会话 |
CCPBetaApi | ccp_auth_response_post | 帖子 /ccp/auth/response | 完成 CCP 会话 |
CCPBetaApi | ccp_order_delete | 删除 /ccp/order | 删除订单 |
CCPBetaApi | ccp_order_post | 发布 /ccp/order | 提交订单 |
CCPBetaApi | ccp_order_put | 更新 /ccp/order | 更新订单 |
CCPBetaApi | ccp_orders_get | 获取 /ccp/orders | 订单状态 |
CCPBetaApi | ccp_positions_get | 获取 /ccp/positions | 仓位 |
CCPBetaApi | ccp_status_get | 获取 /ccp/status | CCP 状态 |
CCPBetaApi | ccp_trades_get | 获取 /ccp/trades | 交易 |
ContractApi | iserver_contract_conid_algos_get | 获取 /iserver/contract/{conid}/algos | IB 算法参数 |
ContractApi | iserver_contract_conid_info_and_rules_get | 获取 /iserver/contract/{conid}/info-and-rules | 信息和规则 |
ContractApi | iserver_contract_conid_info_get | 获取 /iserver/contract/{conid}/info | 合约详情 |
ContractApi | iserver_secdef_info_get | 获取 /iserver/secdef/info | Secdef 信息 |
ContractApi | iserver_secdef_search_post | 发布 /iserver/secdef/search | 按符号或名称搜索 |
ContractApi | iserver_secdef_strikes_get | 获取 /iserver/secdef/strikes | 搜索行权价 |
ContractApi | trsrv_futures_get | 获取 /trsrv/futures | 按符号获取证券期货 |
ContractApi | trsrv_secdef_post | 发布 /trsrv/secdef | 按 Conid 获取 Secdef |
ContractApi | trsrv_secdef_schedule_get | 获取 /trsrv/secdef/schedule | 获取交易时间表 |
ContractApi | trsrv_stocks_get | 获取 /trsrv/stocks | 按符号获取证券股票 |
FYIApi | fyi_deliveryoptions_device_id_delete | 删除 /fyi/deliveryoptions/{deviceId} | 删除设备 |
FYIApi | fyi_deliveryoptions_device_post | 发布 /fyi/deliveryoptions/device | 启用/禁用设备选项 |
FYIApi | fyi_deliveryoptions_email_put | 更新 /fyi/deliveryoptions/email | 启用/禁用电子邮件选项 |
FYIApi | fyi_deliveryoptions_get | 获取 /fyi/deliveryoptions | 获取投递选项 |
FYIApi | fyi_disclaimer_typecode_get | 获取 /fyi/disclaimer/{typecode} | 获取特定类型 fyi 的免责声明 |
FYIApi | fyi_disclaimer_typecode_put | 更新 /fyi/disclaimer/{typecode} | 标记免责声明为已读 |
FYIApi | fyi_notifications_get | 获取 /fyi/notifications | 获取通知列表 |
FYIApi | fyi_notifications_more_get | 获取 /fyi/notifications/more | 根据特定通知获取更多通知 |
FYIApi | fyi_notifications_notification_id_put | 更新 /fyi/notifications/{notificationId} | 获取通知列表 |
FYIApi | fyi_settings_get | 获取 /fyi/settings | 获取订阅列表 |
FYIApi | fyi_settings_typecode_post | 发布 /fyi/settings/{typecode} | 启用/禁用特定订阅 |
FYIApi | fyi_unreadnumber_get | 获取 /fyi/unreadnumber | 获取 fyis 的未读数量。也支持 POST HTTP 方法。 |
IBCustApi | ibcust_entity_info_get | 获取 /ibcust/entity/info | IBCust 实体信息 |
MarketDataApi | iserver_marketdata_conid_unsubscribe_get | 获取 /iserver/marketdata/{conid}/unsubscribe | 市场数据取消(单个) |
MarketDataApi | iserver_marketdata_history_get | 获取 /iserver/marketdata/history | 市场数据历史 |
MarketDataApi | iserver_marketdata_snapshot_get | 获取 /iserver/marketdata/snapshot | 市场数据 |
MarketDataApi | iserver_marketdata_unsubscribeall_get | 获取 /iserver/marketdata/unsubscribeall | 市场数据取消(全部) |
OrderApi | iserver_account_account_id_order_order_id_delete | 删除 /iserver/account/{accountId}/order/{orderId} | 取消订单 |
OrderApi | iserver_account_account_id_order_order_id_post | 发布 /iserver/account/{accountId}/order/{orderId} | 修改订单 |
OrderApi | iserver_account_account_id_order_post | 发布 /iserver/account/{accountId}/order | 下单(已弃用) |
OrderApi | iserver_account_account_id_order_whatif_post | 发布 /iserver/account/{accountId}/order/whatif | 预览订单(已弃用) |
OrderApi | iserver_account_account_id_orders_post | 发布 /iserver/account/{accountId}/orders | 下单 |
OrderApi | iserver_account_account_id_orders_whatif_post | 发布 /iserver/account/{accountId}/orders/whatif | 预览订单 |
OrderApi | iserver_account_order_status_order_id_get | 获取 /iserver/account/order/status/{orderId} | 订单状态 |
OrderApi | iserver_account_orders_fa_group_post | 发布 /iserver/account/orders/{faGroup} | 为 FA 下单 |
OrderApi | iserver_account_orders_get | 获取 /iserver/account/orders | 实时订单 |
OrderApi | iserver_reply_replyid_post | 提交 /iserver/reply/{replyid} | 下单回复 |
PnLApi | iserver_account_pnl_partitioned_get | Get /iserver/account/pnl/partitioned | 所选账户的PnL |
投资组合Api | portfolio_account_id_allocation_get | 获取 /portfolio/{accountId}/allocation | 账户分配 |
投资组合Api | portfolio_account_id_ledger_get | Get /portfolio/{accountId}/ledger | 账户账簿 |
投资组合Api | portfolio_account_id_meta_get | Get /portfolio/{accountId}/meta | 账户信息 |
投资组合Api | portfolio_account_id_position_conid_get | 获取 /portfolio/{accountId}/position/{conid} | 按Conid获取仓位 |
投资组合Api | portfolio_account_id_positions_invalidate_post | 提交 /portfolio/{accountId}/positions/invalidate | 无效化投资组合的后端缓存 |
投资组合Api | portfolio_account_id_positions_page_id_get | 获取 /portfolio/{accountId}/positions/{pageId} | 投资组合仓位 |
投资组合Api | portfolio_account_id_summary_get | Get /portfolio/{accountId}/summary | 账户摘要 |
投资组合Api | portfolio_accounts_get | Get /portfolio/accounts | 投资组合账户 |
投资组合Api | portfolio_allocation_post | 提交 /portfolio/allocation | 账户分配(所有账户) |
投资组合Api | portfolio_positions_conid_get | 获取 /portfolio/positions/{conid} | 按Conid获取仓位 |
投资组合Api | portfolio_subaccounts_get | Get /portfolio/subaccounts | 子账户列表 |
PortfolioAnalystApi | pa_performance_post | 提交 /pa/performance | 账户绩效 |
PortfolioAnalystApi | pa_summary_post | 提交 /pa/summary | 账户余额概要 |
PortfolioAnalystApi | pa_transactions_post | 提交 /pa/transactions | 仓位交易历史 |
ScannerApi | iserver_scanner_params_get | 获取 /iserver/scanner/params | 扫描器参数 |
ScannerApi | iserver_scanner_run_post | 提交 /iserver/scanner/run | 运行扫描器以获取合约列表 |
SessionApi | iserver_auth_status_post | 提交 /iserver/auth/status | 认证状态 |
SessionApi | iserver_reauthenticate_post | 提交 /iserver/reauthenticate | 尝试重新认证到经纪商 |
SessionApi | logout_post | 提交 /logout | 结束当前会话 |
SessionApi | sso_validate_get | 获取 /sso/validate | 验证SSO |
SessionApi | tickle_post | 提交 /tickle | ping服务器以保持会话打开 |
StreamingApi | ws_post | 提交 /ws | Websocket端点 |
TradesApi | iserver_account_trades_get | 获取 /iserver/account/trades | 所选账户的交易列表 |
模型文档
- 账户
- AccountParent
- Accounts
- AlertRequest
- AlertResponse
- AlertrequestConditions
- AlertresponseConditions
- Allocation
- AllocationInner
- AllocationInnerAssetClass
- AllocationInnerAssetClassLong
- AllocationInnerAssetClassShort
- AllocationInnerGroup
- AllocationInnerGroupLong
- AllocationInnerGroupShort
- AllocationInnerSector
- AllocationInnerSectorLong
- AllocationInnerSectorShort
- Auth
- AuthStatus
- Body
- Body1
- Body10
- Body11
- Body2
- Body3
- Body4
- Body5
- Body6
- Body7
- Body8
- Body9
- CalendarRequest
- CalendarRequestDate
- CalendarRequestFilters
- Contract
- ContractRules
- Events
- EventsInner
- Futures
- FuturesInner
- HistoryData
- HistoryResult
- HistorydataData
- HistoryresultBars
- IbcustentityinfoAddress
- IbcustentityinfoEntities
- IbcustentityinfoName
- Inds
- IndsInner
- InlineResponse200
- InlineResponse2001
- InlineResponse20010
- InlineResponse20011
- InlineResponse20012
- InlineResponse20013
- InlineResponse20014
- InlineResponse20014Orders
- InlineResponse20015
- InlineResponse20016
- InlineResponse20017
- InlineResponse20018
- InlineResponse20018Amount
- InlineResponse20018Equity
- InlineResponse20019
- InlineResponse2002
- InlineResponse20020
- InlineResponse20021
- InlineResponse20022
- InlineResponse20023
- InlineResponse20023CqtTypes
- InlineResponse20023FraqTypes
- InlineResponse20023IbalgoTypes
- InlineResponse20023OrderDefaults
- InlineResponse20023OrderTypes
- InlineResponse20023OrderTypesOutside
- InlineResponse20023Rules
- InlineResponse20023String
- InlineResponse20023TifTypes
- InlineResponse20024
- InlineResponse20025
- InlineResponse20026
- InlineResponse20027
- InlineResponse20027FilterList
- InlineResponse20027InstrumentList
- InlineResponse20027LocationTree
- InlineResponse20027Locations
- InlineResponse20027ScanTypeList
- InlineResponse20028
- InlineResponse20029
- InlineResponse2003
- 内联响应20030
- 内联响应20031
- 内联响应20032
- 内联响应20033
- 内联响应20034
- 内联响应20035
- 内联响应20036
- 内联响应20037
- 内联响应20037计划
- 内联响应20037会话
- 内联响应20037交易时间
- 内联响应20038
- 内联响应2004
- 内联响应2005
- 内联响应2005E
- 内联响应2006
- 内联响应2007
- 内联响应2008
- 内联响应2009
- 内联响应200帐户列表
- 内联响应400
- 内联响应4001
- 内联响应429
- Iservercontractconidalgos参数
- Iserversecdefsearch部分
- 总账
- 市场数据
- 修改订单
- 通知
- 通知内部
- 订单
- 订单数据
- 订单请求
- 订单状态
- 订单数据警告
- 性能
- 性能Cps
- 性能Cps数据
- 性能Nav
- 性能Tpps
- 仓位
- 仓位数据
- 仓位内部
- 扫描器参数
- 扫描结果
- 扫描器参数仪器列表
- 扫描器参数仪器列表仪器
- 扫描器参数位置树
- 扫描器参数位置树位置
- 扫描器参数扫描类型列表
- 扫描器参数扫描类型列表扫描类型
- 扫描结果合同
- 扫描结果合同合同
- 证券定义
- 证券定义信息
- 证券定义内部
- 证券定义内部增量规则
- 设置账户
- 统计数据
- 股票
- 股票内部
- 股票内部合同
- 摘要
- 摘要账户摘要
- 摘要按日期余额
- 摘要按日期余额系列
- 摘要排除账户
- 摘要总计
- 符号
- 系统错误
- 交易
- 交易
- 交易交易
- 赌注
- 赌注内部
授权文档
端点不需要授权。
作者
依赖关系
~12MB
~240K SLoC