Binance¶
The Binance modules allow you to list account traders, orders, retrieve, and cancel the account information, exchange information, orders, and OCO orders from your Binance account.
Getting Started with Binance¶
Prerequisites
A Binance account - create an account at binance.com/en.
The module dialog fields that are displayed in bold (in the Ibexa Connect scenario, not in this documentation article) are mandatory!
Connecting Binance to Ibexa Connect¶
To connect your Binance account to Ibexa Connect you need to obtain the API key and Secret API Key from your Binance account and insert it in the Create a connection dialog in the Ibexa Connect module.
-
Log in to your Binance account.
-
Click Settings.
-
Click API Tokens.
-
Click New token
-
In the Name field, enter a name for the token and click Create.
-
Copy the API Token to your clipboard.
-
Log in to your Ibexa Connect account, add a module from the Binance app into an Ibexa Connect scenario.
-
Click Add next to the Connection field.
-
In the Connection name field, enter a name for the connection.
-
In the API Key field, enter the token details copied in step 6 and click Continue.
The connection has been established.
Account Information¶
List Account Trades¶
List trades for a specific account and symbol.
Symbol | Select or map the symbol whose trades you want to list. |
Order From ID | Select or map the Order From ID whose trades you want to list. |
Start Time | Enter (map) a start time to search the trades. |
End Time | Enter (map) an end time to search the trades. |
Limit | Set the maximum number of trades Ibexa Connect should return during one execution cycle. Note that the default limit is 10 and it should be less than 1000. |
List Current Open Orders¶
Retrieves all open orders in a symbol.
Symbol | Select or map the symbol trades you want to list current open trades. |
Limit | Set the maximum number of trades Ibexa Connect should return during one execution cycle. Note that the default limit is 10. |
Search Orders¶
Retrieves all account orders; active, canceled, or filled.
Symbol | Select or map the symbol whose orders you want to search. |
Order From ID | Select or map the Order From ID trades you want to search. Note: If Order ID is set, it will get orders of that Order ID. Otherwise, most recent orders are returned. |
Start Time | Enter (map) a start time to search the orders. Note: If Start Time and/or End Time are provided, the Order ID is not required. |
End Time | Enter (map) an end time to search the orders. Note: If Start Time and/or End Time are provided, the Order ID is not required. |
Limit | Set the maximum number of trades Ibexa Connect should return during one execution cycle. Note that the default limit is 10 and it should be less than 1000. |
Exchange Information¶
Get Exchange Info¶
Retrieves exchange information from the Binance.
Trade Pairs | Select or map the trade pairs to retrieve the exchange Information. |
Get Symbol Ticker Price¶
Retrieves 24hr ticker price change statistics.
Symbol | Select or map the trading symbol to retrieve the ticker price. |
Get Candlestick Data (Kline)¶
Retrieves candlestick data from Binance.
Symbol |
Select or map the trading symbol to retrieve the candlestick data (Kline). |
||||||||||||||||||||||||||||||||
Interval |
Select or map the time interval to retrieve the candlestick data (Kline):
|
||||||||||||||||||||||||||||||||
Start Time |
Enter (map) a start time to retrieve the candlestick data. |
||||||||||||||||||||||||||||||||
End Time |
Enter (map) an end time to retrieve the candlestick data. |
Get Current Average Price¶
Retrieves current average price of trading pair.
Symbol | Select or map the trading symbol to retrieve the current average price. |
Get Symbol Order Book Ticket¶
Retrieves the best price/ quantity on the order book for a pair.
Symbol | Select or map the trading symbol to retrieve the symbol order book ticker. |
List Recent Trades¶
Gets history trades from Binance.
Symbol | Select or map the trading symbol to retrieve the recent trades list. |
Number of Trades | Enter (map) a maximum number of trades Ibexa Connect should return during one execution cycle. Note that the default limit is 10 and it should be less than 1000. |
List Older Trades¶
Gets history trades from Binance.
Symbol | Select or map the trading symbol to retrieve the older trades list. |
Order From ID | Select or map the Order From ID to retrieve the older trades list. |
Limit | Set the maximum number of trades Ibexa Connect should return during one execution cycle. Note that the default limit is 10 and it should be less than 1000. |
Orders¶
New Order (Trade)¶
Sends in a new order.
Symbol |
Select or map the trading symbol to send a new order. |
||||||||
Side |
Select the side of order:
|
||||||||
Order Type |
Select the type of the order:
|
||||||||
Limit |
|
||||||||
Market |
|
||||||||
Stop Loss |
|
||||||||
Stop Loss (Limit) |
|
||||||||
Take Profit |
|
||||||||
Take Profit (Limit) |
|
||||||||
Limit Maker |
|
Cancel Order¶
Cancels order by ID or ClientID.
Symbol |
Select or map the trading symbol to cancel an order. |
Cancel by |
Select the method of canceling the order:
|
Order ID |
Select or map the Order ID to cancel the order. |
Orig Client Order ID |
Select or map the Orig Client Order ID to cancel the order. |
Cancel All open Orders On a Symbol¶
Cancels all active orders on a symbol. Includes OCO orders.
Symbol | Select or map the trading symbol to cancel all open orders on the symbol. |
List Current Open Orders¶
Retrieves all open orders in a symbol.
Symbol | Select or map the trading symbol to retrieve all open orders in a symbol. |
Limit | Set the maximum number of orders Ibexa Connect should return during one execution cycle. Note that the default limit is 10. |
OCO Orders¶
New OCO (Trade)¶
Sends in a new OCO.
Symbol |
Select or map the trading symbol to send a new OCO. |
||||||
Side |
Select the side of order:
|
||||||
Buy |
Select the type of the order:
|
||||||
Limit |
|
||||||
Quantity |
Enter (map) the quantity of the order. |
||||||
List Client Order ID |
Enter (map) the unique ID for the entire order list. |
||||||
ID of the Limit Order |
Enter (map) the unique ID for the limit order. |
||||||
Limit Iceberg Quantity |
Enter (map) the Limit Iceberg Quantity for the new order. |
||||||
Stop Client Order ID |
Enter (map) the Stop Client Order ID for the order. |
||||||
Stop Limit Time In Force |
Select the type of Time In Force:
|
||||||
New Order Response Type |
Select the order response type:
|
Get/Query OCO¶
Retrieves a specific OCO based on provided optional parameters.
Query Type |
Select the type of Query to retrieve:
|
||||||||
Query OCO |
|
||||||||
Query All OCO's |
|
Cancel OCO (Trade)¶
Cancels an entire Order list.
Cancel by |
Select how you want to cancel the OCO (Trade):
|
Order List ID |
Select or map the Order List ID to cancel the entire order list. |
List Client Order ID |
Select or map the List Client Order ID to cancel the entire order list. |