Path: blob/master/bitget-golang-sdk-api/pkg/client/v1/spotaccountclient.go
518 views
package v112import (3"bitget/internal"4"bitget/internal/common"5)67type SpotAccountClient struct {8BitgetRestClient *common.BitgetRestClient9}1011func (p *SpotAccountClient) Init() *SpotAccountClient {12p.BitgetRestClient = new(common.BitgetRestClient).Init()13return p14}1516func (p *SpotAccountClient) Info() (string, error) {17params := internal.NewParams()18resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/account/getInfo", params)19return resp, err20}2122func (p *SpotAccountClient) Assets(params map[string]string) (string, error) {23resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/account/assets-lite", params)24return resp, err25}2627func (p *SpotAccountClient) Bills(params map[string]string) (string, error) {28resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/account/bills", params)29return resp, err30}3132func (p *SpotAccountClient) TransferRecords(params map[string]string) (string, error) {33resp, err := p.BitgetRestClient.DoGet("/api/spot/v1/account/transferRecords", params)34return resp, err35}363738