We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5de8dd7 commit 6e3b837Copy full SHA for 6e3b837
examples/main.go
@@ -4,5 +4,6 @@ func main() {
4
// Ticker()
5
// Ohlcv()
6
// SpotOrder()
7
- FuturesOrder()
+ // FuturesOrder()
8
+ WalletBalance()
9
}
examples/wallet.go
@@ -0,0 +1,30 @@
1
+package main
2
+
3
+import (
+ "context"
+ "fmt"
+ "github.com/adshao/go-binance/v2"
+)
10
+func WalletBalance() {
11
+ apiKey := ""
12
+ secret := ""
13
+ client := binance.NewClient(apiKey, secret)
14
15
+ quoteAsset := "USDT"
16
17
+ res, err := client.NewWalletBalanceService().
18
+ QuoteAsset(quoteAsset).
19
+ Do(context.Background())
20
21
+ if err != nil {
22
+ fmt.Println(err)
23
+ return
24
+ }
25
26
+ for _, w := range res {
27
+ fmt.Printf("%s: %s\n", w.WalletName, w.Balance)
28
29
30
+}
0 commit comments