Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
coinbase_trade_encoder.hpp File Reference
#include <common/market_data.hpp>
#include <common/messages.hpp>
#include <nlohmann/json.hpp>
Include dependency graph for coinbase_trade_encoder.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  slick
namespace  slick::sim
namespace  slick::sim::md_publisher

Functions

json slick::sim::md_publisher::encode_market_trade (const char *product_id, const TradeSummary &summary)
 One executed trade, as a "type":"update" event.
json slick::sim::md_publisher::encode_market_trades (const char *product_id, const char *event_type, const MDTrade *trades, uint32_t num_trades, bool newest_first)
 A run of trades as a single event of the given type.