mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
* binance: use currency.Pair for request arguments * request calls use type safe arguments * binance API handles the correct conversion now on a lower level * consolidate formatting to a single place * remove unused Pair.ID * add tests for formatting * fix linter issue
12 lines
263 B
Go
12 lines
263 B
Go
package currency
|
|
|
|
// Pair holds currency pair information
|
|
type Pair struct {
|
|
Delimiter string `json:"delimiter,omitempty"`
|
|
Base Code `json:"base,omitempty"`
|
|
Quote Code `json:"quote,omitempty"`
|
|
}
|
|
|
|
// Pairs defines a list of pairs
|
|
type Pairs []Pair
|