https://github.com/binance/binance-futures-java-toolbox
Toolbox for Binance Futures Java Connector
https://github.com/binance/binance-futures-java-toolbox
binance-api futures java toolbox
Last synced: about 1 month ago
JSON representation
Toolbox for Binance Futures Java Connector
- Host: GitHub
- URL: https://github.com/binance/binance-futures-java-toolbox
- Owner: binance
- Created: 2022-12-09T03:21:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-09T03:29:50.000Z (over 3 years ago)
- Last Synced: 2025-10-05T12:36:05.855Z (7 months ago)
- Topics: binance-api, futures, java, toolbox
- Language: Java
- Homepage:
- Size: 3.91 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Binance Toolbox for Futures in Java
A collection of Java examples that connects to the Binance Futures API endpoints based on `binance-futures-connector-java`.
- Github repository: https://github.com/binance/binance-futures-connector-java
- Maven repository: https://repo1.maven.org/maven2/io/github/binance/binance-futures-connector-java/
- Javadoc: https://www.javadoc.io/doc/io.github.binance/binance-futures-connector-java/latest/index.html
## Installation
Replace `1.0.0` with the latest version number and paste the snippet below in `pom.xml`
```
io.github.binance
binance-futures-connector-java
1.0.0
```
Run `mvn install` where `pom.xml` is located to install the dependency.
## Running a java file
For example, to execute `um_futures/MarketData.java` you would run:
```shell
mvn compile exec:java -Dexec.mainClass="um_futures.MarketData"
```
## API key & secret
To get user's information, e.g account balance, you will need to setup API key/secret from
Production: https://www.binance.com/en/my/settings/api-management
Testnet: https://testnet.binancefuture.com/
Fill in the API/Secret key parameters in `config/PrivateConfig.java`
If you see API server returns error "Invalid API-key, IP, or permissions for action.", please check this topic https://dev.binance.vision/t/why-do-i-see-this-error-invalid-api-key-ip-or-permissions-for-action/93
This forum has plenty of topics covering most of common questions, it's the best place to ask or search API related questions.
## License
MIT