package
Version:
v2.3.13
Opens a new window with list of versions in this module.
Published: Oct 28, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
AmountToLotSize converts an amount to a lot sized amount
IsAPIError check if e is an API error
ToJSONList convert v to json list if v is a map
type APIError struct {
Code int64 `json:"code"`
Message string `json:"msg"`
}
APIError define API error when response status is 4xx or 5xx
Error return error code and message
PriceLevel is a common structure for bids and asks in the
order book.
Parse parses this PriceLevel's Price and Quantity and
returns them both. It also returns an error if either
fails to parse.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.