A Node-RED node wrapper to make API calls to the Binance exchange. The back-end node library used to communicate with the Binance exchange is one of the winner of the Binance API Competition. See: https://support.binance.com/hc/en-us/articles/115002103732-First-Winner-of-Binance-API-Competition.
github: https://github.com/binance-exchange/node-binance-api
npm: https://www.npmjs.com/package/node-binance-api
IMPORTANT
For buy/sell nodes, orders will be placed with the user specified parameters on node input. There will be no secondary confirmation. Orders on the exchange cannot be reversed once they have been completed/satisfied.
USE AT YOUR OWN RISK
FRED Cloud Node-RED and cryptocurrencies
/home/{USER}/.node-red
)npm install node-red-contrib-binance
Nodes supported are a subset of the available functions in the API
Getting latest price of a symbol.
Input:
Output:
Getting latest price of all symbols.
Input:
Output:
Getting bid/ask prices for a symbol.
Input:
Output:
Get 24hr ticker price change statistics for a symbol.
Input:
Output:
Get Kline/candlestick data for a symbol.
Input:
Output:
i.e.
[
[
1499040000000, // Open time
"0.01634790", // Open
"0.80000000", // High
"0.01575800", // Low
"0.01577100", // Close
"148976.11427815", // Volume
1499644799999, // Close time
"2434.19055334", // Quote asset volume
308, // Number of trades
"1756.87402397", // Taker buy base asset volume
"28.46694368", // Taker buy quote asset volume
"17928899.62484339" // Ignore
]
]
Get open orders for a symbol.
Input:
Output:
Get list of current balances.
Input:
Output:
Cancel all open orders of a ticker pair.
Input:
Output:
Get trade history of a ticker pair.
Input:
Output:
Create a limit or market buy order.
USE AT YOUR OWN RISK
Input:
Output:
Create a limit or market sell order.
USE AT YOUR OWN RISK
Input:
Output:
Most responses are directly passed through from the API to the output payload. Errors are directed to the nodes status message as well as the debug console.
For more details on the responses please see the official Binance REST API documentation at: https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md