Path: blob/master/bitget-golang-sdk-api/pkg/client/v1/spotwalletclient.go
518 views
package v112import (3"bitget/internal"4"bitget/internal/common"5)67type SpotWalletApi struct {8BitgetRestClient *common.BitgetRestClient9}1011func (p *SpotWalletApi) Transfer(params map[string]string) (string, error) {12postBody, jsonErr := internal.ToJson(params)13if jsonErr != nil {14return "", jsonErr15}16resp, err := p.BitgetRestClient.DoPost("/api/v2/spot/wallet/transfer", postBody)17return resp, err18}1920func (p *SpotWalletApi) DepositAddress(params map[string]string) (string, error) {21resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/wallet/deposit-address", params)22return resp, err23}2425func (p *SpotWalletApi) Withdrawal(params map[string]string) (string, error) {26postBody, jsonErr := internal.ToJson(params)27if jsonErr != nil {28return "", jsonErr29}30resp, err := p.BitgetRestClient.DoPost("/api/v2/spot/wallet/withdrawal", postBody)31return resp, err32}3334func (p *SpotWalletApi) WithdrawalRecords(params map[string]string) (string, error) {35resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/wallet/withdrawal-records", params)36return resp, err37}3839func (p *SpotWalletApi) DepositRecords(params map[string]string) (string, error) {40resp, err := p.BitgetRestClient.DoGet("/api/v2/spot/wallet/deposit-records", params)41return resp, err42}434445