mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Added MarketType field in MarketInfo of bitflyer (#587)
This commit is contained in:
@@ -93,10 +93,18 @@ func TestGetAddressInfoCA(t *testing.T) {
|
||||
|
||||
func TestGetMarkets(t *testing.T) {
|
||||
t.Parallel()
|
||||
_, err := b.GetMarkets()
|
||||
markets, err := b.GetMarkets()
|
||||
if err != nil {
|
||||
t.Error("Bitflyer - GetMarkets() error:", err)
|
||||
}
|
||||
for _, market := range markets {
|
||||
if market.ProductCode == "" {
|
||||
t.Error("Bitflyer - ProductCode is empty in GetMarkets()")
|
||||
}
|
||||
if market.MarketType == "" {
|
||||
t.Error("Bitflyer - MarketType is empty in GetMarkets()")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetOrderBook(t *testing.T) {
|
||||
|
||||
@@ -52,6 +52,7 @@ type ChainAnalysisAddress struct {
|
||||
type MarketInfo struct {
|
||||
ProductCode string `json:"product_code"`
|
||||
Alias string `json:"alias"`
|
||||
MarketType string `json:"market_type"`
|
||||
}
|
||||
|
||||
// Orderbook holds orderbook information
|
||||
|
||||
Reference in New Issue
Block a user