![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
The BrokerSession adapter for kis::KisClient. More...
#include <algotradelib/src/brokers/kis/traits.hpp>
Public Types | |
| using | Client = kis::KisClient |
| The client type. | |
| using | Config = kis::KisConfig |
| The configuration type. | |
| using | Account = kis::KisAccount |
| The account type. | |
| using | BrokerTag = kis::Broker |
| The broker tag. | |
| using | PlaceAck = kis::KisOrderAck |
| The order acknowledgement type. | |
| using | Amendment = kis::KisAmendment |
| The amendment type. | |
| using | HistoryQuery = kis::KisHistoryRange |
| The order-history query type. | |
| using | WorkingOrdersResult = kis::KisOpenOrderPage |
| The working-order result type. | |
Static Public Member Functions | |
| static constexpr Venue | effective_route (Venue asked) noexcept |
| Where an order carrying asked actually goes; see kis_effective_route. | |
| static const network::RateLimitStats * | rate_limit_stats (const Client &client) |
| Returns this client's pacing statistics, or null when it is unpaced. | |
| template<typename Token> | |
| static auto | instrument (Client &client, InstrumentId subject, Token &&token) |
| Forwards a reference-data request for one instrument. | |
| template<typename Token> | |
| static auto | calendar (Client &client, Country, std::optional< Date > from, Token &&token) |
| Forwards a calendar request (the market argument is ignored; validate_calendar checks it). | |
| template<typename Token> | |
| static auto | price_limits (Client &client, InstrumentId instrument, Token &&token) |
| Forwards a price-bound request. | |
| template<typename Token> | |
| static auto | trades (Client &client, InstrumentId instrument, int count, Token &&token) |
| Forwards a recent-execution request. | |
| template<typename Token> | |
| static auto | depth (Client &client, InstrumentId instrument, Token &&token) |
| Forwards an order book request. | |
| template<typename Token> | |
| static auto | bars (Client &client, BarQuery query, Token &&token) |
| Forwards a bar request. | |
| template<typename Token> | |
| static auto | quote (Client &client, InstrumentId instrument, Token &&token) |
| Forwards a quote request. | |
| template<typename Token> | |
| static auto | buying_power (Client &client, const Account &account, Currency currency, Token &&token) |
| Forwards a buying-power request for the bound account. | |
| template<typename Token> | |
| static auto | holdings (Client &client, const Account &account, Token &&token) |
| Forwards a holdings request for the bound account. | |
| template<typename Token> | |
| static auto | place_order (Client &client, const Account &account, OrderRequest order, Token &&token) |
| Forwards an order submission for the bound account. | |
| template<typename Token> | |
| static auto | replace_order (Client &client, const Account &account, Amendment amendment, Token &&token) |
| Forwards an order modification for the bound account. | |
| template<typename Token> | |
| static auto | cancel_order (Client &client, const Account &account, Amendment amendment, Token &&token) |
| Forwards an order cancellation for the bound account. | |
| template<typename Token> | |
| static auto | working_orders (Client &client, const Account &account, Token &&token) |
| Forwards an amendable-order inquiry for the bound account. | |
| template<typename Token> | |
| static auto | order_history (Client &client, const Account &account, HistoryQuery query, Token &&token) |
| Forwards an order-history inquiry for the bound account. | |
Static Public Attributes | |
| static constexpr std::string_view | name = kis::Broker::name |
| The broker's name. | |
| static constexpr bool | blocking = false |
| false: requests complete through a completion token. | |
The BrokerSession adapter for kis::KisClient.
Definition at line 400 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisClient >::Account = kis::KisAccount |
The account type.
Definition at line 418 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisClient >::Amendment = kis::KisAmendment |
The amendment type.
Definition at line 427 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisClient >::BrokerTag = kis::Broker |
The broker tag.
Definition at line 421 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisClient >::Client = kis::KisClient |
The client type.
Definition at line 412 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisClient >::Config = kis::KisConfig |
The configuration type.
Definition at line 415 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisClient >::HistoryQuery = kis::KisHistoryRange |
The order-history query type.
Definition at line 430 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisClient >::PlaceAck = kis::KisOrderAck |
The order acknowledgement type.
Definition at line 424 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisClient >::WorkingOrdersResult = kis::KisOpenOrderPage |
The working-order result type.
Definition at line 433 of file traits.hpp.
|
inlinestatic |
Forwards a bar request.
| Token | An Asio completion token. |
| client | The client. |
| query | The query. |
| token | The completion token. |
Definition at line 528 of file traits.hpp.
|
inlinestatic |
Forwards a buying-power request for the bound account.
| Token | An Asio completion token. |
| client | The client. |
| account | The bound account. |
| currency | The currency. |
| token | The completion token. |
Definition at line 555 of file traits.hpp.
|
inlinestatic |
Forwards a calendar request (the market argument is ignored; validate_calendar checks it).
| Token | An Asio completion token. |
| client | The client. |
| from | The first date (today in Korea if empty). |
| token | The completion token. |
Definition at line 473 of file traits.hpp.
|
inlinestatic |
Forwards an order cancellation for the bound account.
| Token | An Asio completion token. |
| client | The client. |
| account | The bound account. |
| amendment | The amendment. |
| token | The completion token. |
Definition at line 615 of file traits.hpp.
|
inlinestatic |
Forwards an order book request.
| Token | An Asio completion token. |
| client | The client. |
| instrument | The instrument. |
| token | The completion token. |
Definition at line 515 of file traits.hpp.
|
inlinestaticconstexprnoexcept |
Where an order carrying asked actually goes; see kis_effective_route.
| asked | The order's venue. |
Definition at line 407 of file traits.hpp.
|
inlinestatic |
Forwards a holdings request for the bound account.
| Token | An Asio completion token. |
| client | The client. |
| account | The bound account. |
| token | The completion token. |
Definition at line 568 of file traits.hpp.
|
inlinestatic |
Forwards a reference-data request for one instrument.
| Token | An Asio completion token. |
| client | The client. |
| subject | The instrument. |
| token | The completion token. |
Definition at line 459 of file traits.hpp.
Referenced by depth(), price_limits(), quote(), and trades().
|
inlinestatic |
Forwards an order-history inquiry for the bound account.
| Token | An Asio completion token. |
| client | The client. |
| account | The bound account. |
| query | The query. |
| token | The completion token. |
Definition at line 647 of file traits.hpp.
|
inlinestatic |
Forwards an order submission for the bound account.
| Token | An Asio completion token. |
| client | The client. |
| account | The bound account. |
| order | The order. |
| token | The completion token. |
Definition at line 582 of file traits.hpp.
|
inlinestatic |
Forwards a price-bound request.
| Token | An Asio completion token. |
| client | The client. |
| instrument | The instrument. |
| token | The completion token. |
Definition at line 488 of file traits.hpp.
|
inlinestatic |
Forwards a quote request.
| Token | An Asio completion token. |
| client | The client. |
| instrument | The instrument. |
| token | The completion token. |
Definition at line 541 of file traits.hpp.
|
inlinestatic |
Returns this client's pacing statistics, or null when it is unpaced.
| client | The client. |
Definition at line 446 of file traits.hpp.
|
inlinestatic |
Forwards an order modification for the bound account.
| Token | An Asio completion token. |
| client | The client. |
| account | The bound account. |
| amendment | The amendment. |
| token | The completion token. |
Definition at line 596 of file traits.hpp.
|
inlinestatic |
Forwards a recent-execution request.
| Token | An Asio completion token. |
| client | The client. |
| instrument | The instrument. |
| count | The most trades to return. |
| token | The completion token. |
Definition at line 502 of file traits.hpp.
|
inlinestatic |
Forwards an amendable-order inquiry for the bound account.
| Token | An Asio completion token. |
| client | The client. |
| account | The bound account. |
| token | The completion token. |
Definition at line 633 of file traits.hpp.
|
staticconstexpr |
false: requests complete through a completion token.
Definition at line 439 of file traits.hpp.
|
staticconstexpr |
The broker's name.
Definition at line 436 of file traits.hpp.