Path: blob/master/bitget-java-sdk-api/README_EN.md
1216 views
bitget-java-sdk-api
A Java sdk for bitget exchange API
Supported APIs:
/api/spot/v1/*
/api/mix/v1/*
Supports custom expansion of any URL
Installation
git clone https://github.com/BitgetLimited/v3-bitget-api-sdk.git
mvn clean
mvn install
add sdk dependency to your project
SDK Run Example
Before running the examples, set up your apiKey、 secretKey and passphrase.
This configuration file is only used for examples.
Add Config
Add dependencies
Demo 1: place order
Demo 2: send post request directly If the interface is not defined in the sdk
Demo 3: send get request directly If the interface is not defined in the sdk
Other things to note
Base URL
It's recommended to pass in the baseUrl parameter.
If not provided, the default baseUrl is https://api.bitget.com
Optional parameters
All parameters are read from a HashMap<String,String> object where String is the name of the parameter and String is the value of the parameter. The parameters should follow their exact naming as in the API documentation.