![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
The BlockingSession adapter for kiwoom::KiwoomBlockingClient. More...
#include <algotradelib/src/brokers/kiwoom/traits.hpp>
Public Types | |
| using | Client = kiwoom::KiwoomBlockingClient |
| 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. | |
| static Result< QuoteSnapshot > | quote (Client &client, InstrumentId instrument) |
| Returns a quote. | |
| static Result< PriceLimits > | price_limits (Client &client, InstrumentId instrument) |
| Returns today's price bounds. | |
| static Result< std::vector< TradePrint > > | trades (Client &client, InstrumentId instrument, int count) |
| Returns recent executions. | |
| static Result< DepthSnapshot > | depth (Client &client, InstrumentId instrument) |
| Returns the order book. | |
| static Result< BarSeries > | bars (Client &client, BarQuery query) |
| Returns bars, paging inside the client. | |
| static Result< Instrument > | instrument (Client &client, InstrumentId subject) |
| Returns static reference data for one instrument. | |
| static Result< std::vector< AccountListItem > > | accounts (Client &client) |
| Returns the one account the bound credential drives. | |
| static Result< HoldingsSnapshot > | holdings (Client &client, const Account &account) |
| Serves the normalized holdings verb once a scope is asserted; see the asynchronous thunk. | |
| static Result< BuyingPower > | buying_power (Client &client, const Account &account, Currency currency) |
| Returns what the bound account may spend in currency. | |
| static Result< PlaceAck > | place_order (Client &client, const Account &account, OrderRequest order) |
| Submits an order for the bound account. | |
| static Result< PlaceAck > | replace_order (Client &client, const Account &account, Amendment amendment) |
| Modifies an order for the bound account. | |
| static Result< PlaceAck > | cancel_order (Client &client, const Account &account, Amendment amendment) |
| Cancels an order for the bound account. | |
| static Result< WorkingOrdersResult > | working_orders (Client &client, const Account &account) |
| Returns the amendable orders for the bound account. | |
| static Result< OrderPage > | order_history (Client &client, const Account &account, HistoryQuery query) |
| Returns order history for the bound account. | |
Static Public Attributes | |
| static constexpr std::string_view | name = kiwoom::Broker::name |
| The broker's name. | |
| static constexpr bool | blocking = true |
| true: requests return their result directly. | |
The BlockingSession adapter for kiwoom::KiwoomBlockingClient.
Definition at line 866 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomBlockingClient >::Account = kiwoom::KiwoomAccount |
Kiwoom account selector, which carries nothing because Kiwoom takes nothing.
Definition at line 882 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomBlockingClient >::AccountListItem = kiwoom::KiwoomAccountInfo |
Item type of the broker's own account listing.
Definition at line 885 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomBlockingClient >::Amendment = kiwoom::KiwoomAmendment |
Kiwoom modification and cancellation instruction.
Definition at line 894 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomBlockingClient >::BrokerTag = kiwoom::Broker |
The broker tag.
Definition at line 888 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomBlockingClient >::Client = kiwoom::KiwoomBlockingClient |
The client type.
Definition at line 876 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomBlockingClient >::Config = kiwoom::KiwoomConfig |
Kiwoom application credentials and environment selection.
Definition at line 879 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomBlockingClient >::HistoryQuery = kiwoom::KiwoomHistoryQuery |
Kiwoom order-history selector.
Definition at line 897 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomBlockingClient >::PlaceAck = kiwoom::KiwoomOrderAck |
Acknowledgement Kiwoom returns for an order instruction.
Definition at line 891 of file traits.hpp.
| using algotradelib::BrokerTraits< kiwoom::KiwoomBlockingClient >::WorkingOrdersResult = kiwoom::KiwoomOpenOrderPage |
Kiwoom amendable-order result.
Definition at line 900 of file traits.hpp.
|
inlinestatic |
Returns the one account the bound credential drives.
| client | The client. |
Definition at line 987 of file traits.hpp.
|
inlinestatic |
Returns bars, paging inside the client.
| client | The client. |
| query | The query. |
Definition at line 968 of file traits.hpp.
|
inlinestatic |
Returns what the bound account may spend in currency.
| client | The client. |
| account | The bound account. |
| currency | The currency (only KRW is answered). |
Definition at line 1012 of file traits.hpp.
|
inlinestatic |
Cancels an order for the bound account.
| client | The client. |
| account | The bound account. |
| amendment | The amendment. |
Definition at line 1053 of file traits.hpp.
|
inlinestatic |
Returns the order book.
| client | The client. |
| instrument | The instrument. |
Definition at line 958 of file traits.hpp.
|
inlinestaticconstexprnoexcept |
Returns the venue an order reaches; see kiwoom_route.
| asked | The order's venue. |
Definition at line 873 of file traits.hpp.
|
inlinestatic |
Serves the normalized holdings verb once a scope is asserted; see the asynchronous thunk.
| client | The client. |
| account | The bound account. |
Definition at line 997 of file traits.hpp.
|
inlinestatic |
Returns static reference data for one instrument.
| client | The client. |
| subject | The instrument. |
Definition at line 978 of file traits.hpp.
Referenced by depth(), price_limits(), quote(), and trades().
|
inlinestatic |
Returns order history for the bound account.
| client | The client. |
| account | The bound account. |
| query | The query. |
Definition at line 1078 of file traits.hpp.
|
inlinestatic |
Submits an order for the bound account.
| client | The client. |
| account | The bound account. |
| order | The order. |
Definition at line 1027 of file traits.hpp.
|
inlinestatic |
Returns today's price bounds.
| client | The client. |
| instrument | The instrument. |
Definition at line 933 of file traits.hpp.
|
inlinestatic |
Returns a quote.
| client | The client. |
| instrument | The instrument. |
Definition at line 923 of file traits.hpp.
|
inlinestatic |
Returns the rate limiter's statistics.
| client | The client. |
Definition at line 913 of file traits.hpp.
|
inlinestatic |
Modifies an order for the bound account.
| client | The client. |
| account | The bound account. |
| amendment | The amendment. |
Definition at line 1038 of file traits.hpp.
|
inlinestatic |
Returns recent executions.
| client | The client. |
| instrument | The instrument. |
| count | The most trades to return. |
Definition at line 944 of file traits.hpp.
|
inlinestatic |
Returns the amendable orders for the bound account.
| client | The client. |
| account | The bound account. |
Definition at line 1067 of file traits.hpp.
|
staticconstexpr |
true: requests return their result directly.
Definition at line 906 of file traits.hpp.
|
staticconstexpr |
The broker's name.
Definition at line 903 of file traits.hpp.