package
Version:
v2.0.0-...-9e842d4
Opens a new window with list of versions in this module.
Published: Jun 10, 2021
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.