https://github.com/binance/binance-toolbox-go
Toolbox for Binance Go connector
https://github.com/binance/binance-toolbox-go
binance-api go scripts toolbox
Last synced: 2 months ago
JSON representation
Toolbox for Binance Go connector
- Host: GitHub
- URL: https://github.com/binance/binance-toolbox-go
- Owner: binance
- Created: 2023-04-27T10:44:13.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-28T00:58:24.000Z (about 3 years ago)
- Last Synced: 2025-04-15T01:14:00.680Z (about 1 year ago)
- Topics: binance-api, go, scripts, toolbox
- Language: Go
- Homepage:
- Size: 68.4 KB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# binance-toolbox-go
A collection of Go examples that connect to the Binance Spot API endpoints based on `binance-connector-go`
- Github repository: https://github.com/binance/binance-connector-go
## Installation
Ensure that the `go.mod` file contains the latest version of the Binance Go Connector, then execute the following:
```bash
go mod tidy
go install github.com/binance/binance-connector-go
```
## Usage
First, open `config.go` and replace the placeholders with your API Key and Secret Key. Depending on which endpoint you wish to use, you may also need to replace the Base URL and Websocket URL.
In order to run an example, execute `go run market/ExchangeInfo/ExchangeInfo.go` from the root directory. Replace `market/ExchangeInfo/ExchangeInfo.go` with the specific example you wish to run. Ensure you add your API Key and Secret Key (and Base URL if necessary) to the relevant file before running the example.