54struct TransferRequest {
Fixed<Tag>: int64 fixed point with a global 1e-8 scale (ADR-0001).
Definition strategy.hpp:23
@ Pending
orders on their way: sent, not yet working, or a requote waiting its turn
TreasuryEventKind
What the treasury reports through TreasuryPort::record (journal) and its counters.
Definition transfer.hpp:45
@ Request
a pool's transfer lane: the engine holds the amount and asks for the transfer
@ Planned
dry run: what would have been sent
@ Reserve
reserve = true: the engine is to hold the amount out of the payer's balance
@ Sent
handed to the venue
@ Released
... and give it back: nothing was sent
@ TimedOut
[engine] flatten_timeout_ms elapsed with a position left; it gave up
constexpr std::string_view to_string(ParamType t) noexcept
Definition params.hpp:63
TransferState
Definition transfer.hpp:21
@ Pending
the venue took it and has not finished it
@ NotFound
the venue has no transfer under this id (status only)
@ Unknown
no usable answer (a transport error, a timeout, a 5xx): it may have happened
@ Failed
the venue refused it or gave up: nothing moved
@ Done
the amount has moved
Strongly typed identifiers.
std::string client_id
[0-9a-z], at most kMaxClientId characters
Definition transfer.hpp:57
std::string asset
Definition transfer.hpp:64
static constexpr std::size_t kMaxClientId
Definition transfer.hpp:68
VenueId from
the pool account the amount leaves
Definition transfer.hpp:58
std::string to_account
Definition transfer.hpp:63
std::int64_t created_ms
wall clock; a venue's history query starts here
Definition transfer.hpp:66
std::string from_account
The venue's names of the two accounts (Venue::transfer_account(): a Binance sub-account's email,...
Definition transfer.hpp:62
VenueId to
the pool account it goes to
Definition transfer.hpp:59
Notional amount
Definition transfer.hpp:65
Definition transfer.hpp:71
std::string venue_ref
the venue's id of the transfer (Binance tranId), when it gave one
Definition transfer.hpp:73
TransferState state
Definition transfer.hpp:72
std::string detail
the venue's error or a description of the failure, for the log
Definition transfer.hpp:74
int code
the venue's error code (Binance -9000), 0 without one
Definition transfer.hpp:75
int http_status
the HTTP status of the answer, 0 without one (429: slow down)
Definition transfer.hpp:76