![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
A KIS WebSocket approval key and when it was issued. More...
#include <algotradelib/src/brokers/kis/config.hpp>
Public Member Functions | |
| KisWebsocket () | |
| Constructs an empty key. | |
| void | from_json (const json::object &doc) |
| Reads an approval-key response. | |
| bool | valid () const noexcept |
| Tests whether the key is set and was received less than a day ago. | |
Public Attributes | |
| std::string | approval_key_ |
| The approval key. | |
| std::chrono::system_clock::time_point | last_auth_time_ |
| When it was received. | |
A KIS WebSocket approval key and when it was issued.
Definition at line 309 of file config.hpp.
|
inline |
Constructs an empty key.
Definition at line 316 of file config.hpp.
|
inline |
Reads an approval-key response.
| doc | The response. |
| std::runtime_error | if it has no approval_key. |
Definition at line 323 of file config.hpp.
|
inlinenoexcept |
Tests whether the key is set and was received less than a day ago.
Definition at line 337 of file config.hpp.
| std::string algotradelib::kis::KisWebsocket::approval_key_ |
The approval key.
Definition at line 311 of file config.hpp.
Referenced by from_json(), and valid().
| std::chrono::system_clock::time_point algotradelib::kis::KisWebsocket::last_auth_time_ |
When it was received.
Definition at line 313 of file config.hpp.
Referenced by from_json(), and valid().