Path: blob/master/bitget-golang-sdk-api/pkg/client/v1/spotmarketclient.go
518 views
package v112import (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) Currencies() (string, error) {17params := internal.NewParams()18resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/public/currencies", params)19return resp, err20}2122func (p *SpotMarketClient) Products(params map[string]string) (string, error) {23resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/public/products", params)24return resp, err25}2627func (p *SpotMarketClient) Product(params map[string]string) (string, error) {28resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/public/product", params)29return resp, err30}3132func (p *SpotMarketClient) Fills(params map[string]string) (string, error) {33resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/market/fills", params)34return resp, err35}3637func (p *SpotMarketClient) Depth(params map[string]string) (string, error) {38resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/market/depth", params)39return resp, err40}4142func (p *SpotMarketClient) Tickers(params map[string]string) (string, error) {43resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/market/tickers", params)44return resp, err45}4647func (p *SpotMarketClient) Ticker(params map[string]string) (string, error) {48resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/market/ticker", params)49return resp, err50}5152func (p *SpotMarketClient) Candles(params map[string]string) (string, error) {53resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/market/candles", params)54return resp, err55}565758