| 36 | proto::AccountMessage account; |
| 37 | |
| 38 | SendFixture() |
| 39 | { |
| 40 | // Create a new account with some orders |
| 41 | account.body = { 1, "Test", proto::State::good, { "USD", 1000.0 }, std::make_optional<proto::Balance>({ "EUR", 100.0 }), {} }; |
| 42 | account.body.orders.emplace_back(1, "EURUSD", proto::OrderSide::buy, proto::OrderType::market, 1.23456, 1000.0); |
| 43 | account.body.orders.emplace_back(2, "EURUSD", proto::OrderSide::sell, proto::OrderType::limit, 1.0, 100.0); |
| 44 | account.body.orders.emplace_back(3, "EURUSD", proto::OrderSide::buy, proto::OrderType::stop, 1.5, 10.0); |
| 45 | |
| 46 | // Serialize and send the account |
| 47 | sender.send(account); |
| 48 | } |
| 49 | }; |
| 50 | |
| 51 | BENCHMARK_FIXTURE(SendFixture, "Receive") |
nothing calls this directly
no test coverage detected