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
7
19inline 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
std::string to_hyperliquid_number(int_fast64_t value)
Formats a fixed-point price or size as Hyperliquid does on the wire.
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