Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/c9s/binance-go
A simple, auto-generated binance api package for Golang
https://github.com/c9s/binance-go
binance binance-api
Last synced: 3 months ago
JSON representation
A simple, auto-generated binance api package for Golang
- Host: GitHub
- URL: https://github.com/c9s/binance-go
- Owner: c9s
- Created: 2024-03-09T23:43:01.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-10T00:08:13.000Z (11 months ago)
- Last Synced: 2024-05-23T08:22:20.055Z (8 months ago)
- Topics: binance, binance-api
- Language: Go
- Homepage:
- Size: 83 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
binance-go
=========================================================================binance-go is an api package for binance API.
the API methods are not manually written, which are generated with requestgen .
## SYNOPSIS
```go
import (
"github.com/c9s/binance-go/binanceapi"
)func main() {
key := os.Getenv("BINANCE_API_KEY")
secret := os.Getenv("BINANCE_API_SECRET")client := binanceapi.NewClient("")
client.Auth(key, secret)req := client.NewTransferAssetRequest()
req.Asset("BTC").
FromSymbol("BTCUSDT").
ToSymbol("BTCUSDT").
Amount("0.01").
TransferType(TransferAssetTypeIsolatedMarginToMain)
res, err := req.Do(ctx)
if err != nil {
panic(err)
}
fmt.Printf("%+v", res)
}
```## LICENSE
MIT License