Path: blob/master/bitget-golang-sdk-api/pkg/client/v2/spotmarketclient.go
518 views
package v212import (3"bitget/internal"4"bitget/internal/common"5)67type SpotMarketClient struct {8BitgetRestClient *common.BitgetRestClient9}1011func (p *SpotMarketClient) Init() *SpotMarketClient {12p.BitgetRestClient = new(common.BitgetRestClient).Init()13return p14}1516func (p *SpotMarketClient) Coins() (string, error) {17params := internal.NewParams()18resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/public/coins", params)19return resp, err20}2122func (p *SpotMarketClient) Symbols(params map[string]string) (string, error) {23resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/public/symbols", params)24return resp, err25}2627func (p *SpotMarketClient) Fills(params map[string]string) (string, error) {28resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/market/fills", params)29return resp, err30}3132func (p *SpotMarketClient) Orderbook(params map[string]string) (string, error) {33resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/market/orderbook", params)34return resp, err35}3637func (p *SpotMarketClient) Tickers(params map[string]string) (string, error) {38resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/market/tickers", params)39return resp, err40}4142func (p *SpotMarketClient) Candles(params map[string]string) (string, error) {43resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/market/candles", params)44return resp, err45}464748