| | |
| | | std::chrono::nanoseconds expiry, double aggFee, |
| | | double pasFee, double broFee, uint64_t sequence, |
| | | double timestamp); |
| | | std::string as_string(); |
| | | }; |
| | | |
| | | struct SettleMessage : public FromExchange { |
| | |
| | | SettleMessage(MessageTypes type, std::string product, |
| | | std::string stationName, std::chrono::nanoseconds expiry, |
| | | double price, uint64_t sequence, double timestamp); |
| | | std::string as_string(); |
| | | }; |
| | | |
| | | struct AddMessage : public ToExchange { |
| | |
| | | double price; |
| | | uint64_t filled; |
| | | uint64_t resting; |
| | | std::string owner; |
| | | AddedMessage(MessageTypes type, std::string product, std::string id, |
| | | book::OrderSideEnum side, double price, uint64_t filled, |
| | | uint64_t resting, uint64_t sequence, double timestamp); |
| | | uint64_t resting, std::string owner, uint64_t sequence, double timestamp); |
| | | std::string as_string(); |
| | | }; |
| | | |
| | |
| | | TradeTypeEnum tradeType, std::string passiveOrder, |
| | | uint64_t passiveOrderRemaining, uint64_t sequence, |
| | | double timestamp); |
| | | std::string as_string(); |
| | | }; |
| | | |
| | | struct BrokerRequest : public Broker { |
| | | BrokerRequest(MessageTypes type, std::string product, double price, |
| | | book::OrderSideEnum side, uint64_t volume, |
| | | std::string counterparty); |
| | | std::string as_string(); |
| | | }; |
| | | |
| | | struct BrokerAck : public Broker { |
| | |
| | | book::OrderSideEnum side, uint64_t volume, |
| | | std::string counterparty, std::string id, |
| | | std::string brokerTradeStatus, std::string owner); |
| | | std::string as_string(); |
| | | }; |
| | | |
| | | struct BrokerConfirm : public Broker { |
| | |
| | | BrokerConfirm(MessageTypes type, std::string product, double price, |
| | | book::OrderSideEnum side, uint64_t volume, |
| | | std::string counterparty, std::string id); |
| | | std::string as_string(); |
| | | }; |
| | | |
| | | std::queue<Message*> parse(std::string& str); |