Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Number ¶
type Number float64
Number represents a floating point number, and implements json.Unmarshaller and json.Marshaller
func (Number) MarshalJSON ¶
MarshalJSON implements json.Marshaler by formatting to a json string 1337.37 will marshal to "1337.37" 0 will marshal to an empty string: ""
func (*Number) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type Time ¶
Time represents a time.Time object that can be unmarshalled from a float64 or string. MarshalJSON serializes the time to JSON using RFC 3339 format. Note: Not all exchanges may support RFC 3339 for outbound requests, so ensure compatibility with each exchange's time format requirements.
func (Time) MarshalJSON ¶
MarshalJSON serializes the time to json.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON deserializes json, and timestamp information.