Files
gocryptotrader/currency/pair_types.go
Rauno Ots ddd19ab6d9 binance: use currency.Pair for request arguments (#608)
* 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
2020-12-14 09:36:46 +11:00

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