Slick Sim
0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
hyperliquid_wire_format.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
common/types.hpp
>
4
#include <string>
5
6
namespace
slick::sim::md_publisher
{
7
19
inline
std::string
to_hyperliquid_number
(int_fast64_t value) {
20
return
to_fixed_string
(value,
/*min_frac_digits=*/
1);
21
}
22
23
}
// end namespace slick::sim::md_publisher
slick::sim::md_publisher
Definition
market_data_publisher.hpp:8
slick::sim::md_publisher::to_hyperliquid_number
std::string to_hyperliquid_number(int_fast64_t value)
Formats a fixed-point price or size as Hyperliquid does on the wire.
Definition
hyperliquid_wire_format.hpp:19
slick::sim::to_fixed_string
std::string to_fixed_string(int_fast64_t value, unsigned min_frac_digits=0)
Renders a fixed-point value as an exact decimal string.
Definition
types.hpp:72
types.hpp
venues
hyperliquid
hyperliquid_wire_format.hpp
Generated by
1.15.0