![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
The BlockingSession adapter for kis::KisBlockingClient. More...
#include <algotradelib/src/brokers/kis/traits.hpp>
Public Types | |
| using | Client = kis::KisBlockingClient |
| 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. | |
| static Result< Instrument > | instrument (Client &client, InstrumentId subject) |
| Returns static reference data for one instrument. | |
| static Result< TradingCalendar > | calendar (Client &client, Country, std::optional< Date > from) |
| Returns the calendar, supplying today when no date was given. | |
| 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< QuoteSnapshot > | quote (Client &client, InstrumentId instrument) |
| Returns a quote. | |
| static Result< HoldingsSnapshot > | holdings (Client &client, const Account &account) |
| Returns holdings for the bound account. | |
| 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 = kis::Broker::name |
| The broker's name. | |
| static constexpr bool | blocking = true |
| true: requests return their result directly. | |
The BlockingSession adapter for kis::KisBlockingClient.
Definition at line 659 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisBlockingClient >::Account = kis::KisAccount |
The account type.
Definition at line 677 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisBlockingClient >::Amendment = kis::KisAmendment |
The amendment type.
Definition at line 686 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisBlockingClient >::BrokerTag = kis::Broker |
The broker tag.
Definition at line 680 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisBlockingClient >::Client = kis::KisBlockingClient |
The client type.
Definition at line 671 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisBlockingClient >::Config = kis::KisConfig |
The configuration type.
Definition at line 674 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisBlockingClient >::HistoryQuery = kis::KisHistoryRange |
The order-history query type.
Definition at line 689 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisBlockingClient >::PlaceAck = kis::KisOrderAck |
The order acknowledgement type.
Definition at line 683 of file traits.hpp.
| using algotradelib::BrokerTraits< kis::KisBlockingClient >::WorkingOrdersResult = kis::KisOpenOrderPage |
The working-order result type.
Definition at line 692 of file traits.hpp.
|
inlinestatic |
Returns bars, paging inside the client.
| client | The client. |
| query | The query. |
Definition at line 770 of file traits.hpp.
|
inlinestatic |
Returns what the bound account may spend in currency.
| client | The client. |
| account | The bound account. |
| currency | The currency. |
Definition at line 801 of file traits.hpp.
|
inlinestatic |
Returns the calendar, supplying today when no date was given.
| client | The client. |
| from | The first date (today in Korea if empty). |
Definition at line 725 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 842 of file traits.hpp.
|
inlinestatic |
Returns the order book.
| client | The client. |
| instrument | The instrument. |
Definition at line 760 of file traits.hpp.
|
inlinestaticconstexprnoexcept |
Where an order carrying asked actually goes; see kis_effective_route.
| asked | The order's venue. |
Definition at line 666 of file traits.hpp.
|
inlinestatic |
Returns holdings for the bound account.
| client | The client. |
| account | The bound account. |
Definition at line 790 of file traits.hpp.
|
inlinestatic |
Returns static reference data for one instrument.
| client | The client. |
| subject | The instrument. |
Definition at line 715 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 867 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 816 of file traits.hpp.
|
inlinestatic |
Returns today's price bounds.
| client | The client. |
| instrument | The instrument. |
Definition at line 735 of file traits.hpp.
|
inlinestatic |
Returns a quote.
| client | The client. |
| instrument | The instrument. |
Definition at line 780 of file traits.hpp.
|
inlinestatic |
Returns this client's pacing statistics, or null when it is unpaced.
| client | The client. |
Definition at line 705 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 827 of file traits.hpp.
|
inlinestatic |
Returns recent executions.
| client | The client. |
| instrument | The instrument. |
| count | The most trades to return. |
Definition at line 746 of file traits.hpp.
|
inlinestatic |
Returns the amendable orders for the bound account.
| client | The client. |
| account | The bound account. |
Definition at line 856 of file traits.hpp.
|
staticconstexpr |
true: requests return their result directly.
Definition at line 698 of file traits.hpp.
|
staticconstexpr |
The broker's name.
Definition at line 695 of file traits.hpp.