![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
The BrokerSession adapter for kiwoom::KiwoomClient. More...
#include <algotradelib/src/brokers/kiwoom/traits.hpp>
Public Types | |
| using | Client = kiwoom::KiwoomClient |
| The client type. | |
| using | Config = kiwoom::KiwoomConfig |
| Kiwoom application credentials and environment selection. | |
| using | Account = kiwoom::KiwoomAccount |
| Kiwoom account selector, which carries nothing because Kiwoom takes nothing. | |
| using | AccountListItem = kiwoom::KiwoomAccountInfo |
| Item type of the broker's own account listing. | |
| using | BrokerTag = kiwoom::Broker |
| The broker tag. | |
| using | PlaceAck = kiwoom::KiwoomOrderAck |
| Acknowledgement Kiwoom returns for an order instruction. | |
| using | Amendment = kiwoom::KiwoomAmendment |
| Kiwoom modification and cancellation instruction. | |
| using | HistoryQuery = kiwoom::KiwoomHistoryQuery |
| Kiwoom order-history selector. | |
| using | WorkingOrdersResult = kiwoom::KiwoomOpenOrderPage |
| Kiwoom amendable-order result. | |
Static Public Member Functions | |
| static constexpr Venue | effective_route (Venue asked) noexcept |
| Returns the venue an order reaches; see kiwoom_route. | |
| static const network::RateLimitStats * | rate_limit_stats (const Client &client) |
| Returns the rate limiter's statistics. | |
| template<typename Token> | |
| static auto | quote (Client &client, InstrumentId instrument, Token &&token) |
| Forwards a quote request. | |
| 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 | instrument (Client &client, InstrumentId subject, Token &&token) |
| Forwards a reference-data request. | |
| template<typename Token> | |
| static auto | accounts (Client &client, Token &&token) |
| Forwards an account listing 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, or completes it with refuse_holdings() (sending nothing) while KiwoomConfig::holdings_position_scope_ is not stated. | |
| 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 = kiwoom::Broker::name |
| The broker's name. | |
| static constexpr bool | blocking = false |
| false: requests complete through a completion token. | |
The BrokerSession adapter for kiwoom::KiwoomClient.
Definition at line 577 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomClient >::Account = kiwoom::KiwoomAccount |
Kiwoom account selector, which carries nothing because Kiwoom takes nothing.
Definition at line 593 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomClient >::AccountListItem = kiwoom::KiwoomAccountInfo |
Item type of the broker's own account listing.
Definition at line 596 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomClient >::Amendment = kiwoom::KiwoomAmendment |
Kiwoom modification and cancellation instruction.
Definition at line 605 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomClient >::BrokerTag = kiwoom::Broker |
The broker tag.
Definition at line 599 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomClient >::Client = kiwoom::KiwoomClient |
The client type.
Definition at line 587 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomClient >::Config = kiwoom::KiwoomConfig |
Kiwoom application credentials and environment selection.
Definition at line 590 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomClient >::HistoryQuery = kiwoom::KiwoomHistoryQuery |
Kiwoom order-history selector.
Definition at line 608 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomClient >::PlaceAck = kiwoom::KiwoomOrderAck |
Acknowledgement Kiwoom returns for an order instruction.
Definition at line 602 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomClient >::WorkingOrdersResult = kiwoom::KiwoomOpenOrderPage |
Kiwoom amendable-order result.
Definition at line 611 of file traits.hpp.
|
inlinestatic |
Forwards an account listing request.
| Token | An Asio completion token. |
| client | The client. |
| token | The completion token. |
Definition at line 715 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 690 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 (only KRW is answered). |
| token | The completion token. |
Definition at line 729 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 822 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 677 of file traits.hpp.
|
inlinestaticconstexprnoexcept |
Returns the venue an order reaches; see kiwoom_route.
| asked | The order's venue. |
Definition at line 584 of file traits.hpp.
|
inlinestatic |
Forwards a holdings request, or completes it with refuse_holdings() (sending nothing) while KiwoomConfig::holdings_position_scope_ is not stated.
The refusal completes on the handler's associated executor, like any other completion.
| Token | An Asio completion token. |
| client | The client. |
| account | The bound account. |
| token | The completion token. |
Definition at line 751 of file traits.hpp.
|
inlinestatic |
Forwards a reference-data request.
| Token | An Asio completion token. |
| client | The client. |
| subject | The instrument. |
| token | The completion token. |
Definition at line 703 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 854 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 784 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 650 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 637 of file traits.hpp.
|
inlinestatic |
Returns the rate limiter's statistics.
| client | The client. |
Definition at line 624 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 803 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 664 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 840 of file traits.hpp.
|
staticconstexpr |
false: requests complete through a completion token.
Definition at line 617 of file traits.hpp.
|
staticconstexpr |
The broker's name.
Definition at line 614 of file traits.hpp.