Skip to content

Latest commit

 

History

History
70 lines (56 loc) · 1.04 KB

README.md

File metadata and controls

70 lines (56 loc) · 1.04 KB

binance-java-api

This sample codes are for educational purposes. Use with your own risks in production environment.

Always use test credentials while development.

Get your own API credentials from Binance API Management Page

Examples

Get Binance Ping

uri: /binance/ping
method: GET
response:

successful

Get Binance Server Time

uri: /binance/servertime
method: GET
response:

2022-07-25 19:37:44

Get Binance Ticker

uri: /binance/ticker?pair1=BTC&pair2=USDT
method: POST
response:

{
    "symbol": "BTCUSDT",
    "askPrice": 21900.90000000,
    "bidPrice": 21899.65000000
}

Get Binance Account Balance

uri: /binance/account
method: POST
response:

{
    "source": "binance",
    "assets": [
        {
            "asset": "BTC",
            "amount": 0.01160428
        },
        {
            "asset": "LTC",
            "amount": 0E-8
        }
    ]
}