1 stable release
1.0.0 | Feb 1, 2021 |
---|
#5 in #tinkoff
105KB
2K
SLoC
Rust API client for openapi
tinkoff.ru/invest OpenAPI.
Overview
This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.
- API version: 1.0.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.RustClientCodegen
Installation
Add the following to Cargo.toml
under [dependencies]
:
tinkoff-api = 1.0.0
Documentation for API Endpoints
All URIs are relative to https://api-invest.tinkoff.ru/openapi
Class | Method | HTTP request | Description |
---|---|---|---|
MarketApi | market_bonds_get | get /market/bonds | Получение списка облигаций |
MarketApi | market_candles_get | get /market/candles | Получение исторических свечей по FIGI |
MarketApi | market_currencies_get | get /market/currencies | Получение списка валютных пар |
MarketApi | market_etfs_get | get /market/etfs | Получение списка ETF |
MarketApi | market_orderbook_get | get /market/orderbook | Получение стакана по FIGI |
MarketApi | market_search_by_figi_get | get /market/search/by-figi | Получение инструмента по FIGI |
MarketApi | market_search_by_ticker_get | get /market/search/by-ticker | Получение инструмента по тикеру |
MarketApi | market_stocks_get | get /market/stocks | Получение списка акций |
OperationsApi | operations_get | get /operations | Получение списка операций |
OrdersApi | orders_cancel_post | post /orders/cancel | Отмена заявки |
OrdersApi | orders_get | get /orders | Получение списка активных заявок |
OrdersApi | orders_limit_order_post | post /orders/limit-order | Создание лимитной заявки |
OrdersApi | orders_market_order_post | post /orders/market-order | Создание рыночной заявки |
PortfolioApi | portfolio_currencies_get | get /portfolio/currencies | Получение валютных активов клиента |
PortfolioApi | portfolio_get | get /portfolio | Получение портфеля клиента |
SandboxApi | sandbox_clear_post | post /sandbox/clear | Удаление всех позиций |
SandboxApi | sandbox_currencies_balance_post | post /sandbox/currencies/balance | Выставление баланса по валютным позициям |
SandboxApi | sandbox_positions_balance_post | post /sandbox/positions/balance | Выставление баланса по инструментным позициям |
SandboxApi | sandbox_register_post | post /sandbox/register | Регистрация клиента в sandbox |
SandboxApi | sandbox_remove_post | post /sandbox/remove | Удаление счета |
UserApi | user_accounts_get | get /user/accounts | Получение брокерских счетов клиента |
Documentation For Models
- BrokerAccountType
- Candle
- CandleResolution
- Candles
- CandlesResponse
- Currencies
- Currency
- CurrencyPosition
- Empty
- Error
- ErrorPayload
- InstrumentType
- LimitOrderRequest
- LimitOrderResponse
- MarketInstrument
- MarketInstrumentList
- MarketInstrumentListResponse
- MarketInstrumentResponse
- MarketOrderRequest
- MarketOrderResponse
- MoneyAmount
- Operation
- OperationStatus
- OperationTrade
- OperationType
- OperationTypeWithCommission
- Operations
- OperationsResponse
- Order
- OrderResponse
- OrderStatus
- OrderType
- Orderbook
- OrderbookResponse
- OrdersResponse
- PlacedLimitOrder
- PlacedMarketOrder
- Portfolio
- PortfolioCurrenciesResponse
- PortfolioPosition
- PortfolioResponse
- SandboxAccount
- SandboxCurrency
- SandboxRegisterRequest
- SandboxRegisterResponse
- SandboxSetCurrencyBalanceRequest
- SandboxSetPositionBalanceRequest
- SearchMarketInstrument
- SearchMarketInstrumentResponse
- TradeStatus
- UserAccount
- UserAccounts
- UserAccountsResponse
To get access to the crate's generated documentation, use:
cargo doc --open
Author
Dependencies
~3–7.5MB
~171K SLoC