Ethereum: History of the Binance API transaction
Binance is one of the largest and most popular cryptocurrency exchanges, offering a wide range of APIs for developers to interact with their platform. In this article, we will explore how to recover the history of Ethereum transactions using the Binance API.
Prerequisites
Before you start, make sure you have a binance account and created a developer account on the Binance developer portal. You will also need to get an API key on the Binance API panel.
API end points to recover transaction history
To recover the history of Ethereum transactions using the Binance API, you can use the following end points:
GET/API/V3/Transactionshistory
(Get transactions per block number and date and time record)
GET/API/V2/Orders
(Obtaining History of Orders) – This endpoint will provide access to your own negotiation activity
GET/API/V2/Tradehistory
(Obtain Historical Commercial) – This terminal will give you access to your own commercial activity
** Recover transactions history using Endpoint /API/V3/Transactionsnory
Endpoint GET/API/V3/transactionsnory
allows you to recover the history of Ethereum transactions by block number and date and time record. Here is an example of how you can use this terminal:
`Bash
Curl -x get \
\
-H ‘Type of Content: App/JSON’ \
-H ‘Authorization: bearer your_api_key’
`
Replace your_api_key
with your royal API key. This will return a JSON response containing the transaction history for the specified symbol, block number, date and time record and side.
Recover the transactions history using the /API/V2/Orders' Extreity Point
*
EndpointGET/API/V2/Ordersallows you to recover the history of binance orders. To use this terminal with your Ethereum API key, follow these steps:
Bash
Curl -x get \
\
-H ‘Type of Content: App/JSON’ \
-H ‘Authorization: bearer your_api_key’
`
Replace your_api_key
with your royal API key.
Recover the transactions history using the /API/V2/Tradehistory
Endpoint GET/API/V2/Tradehistory
allows Binance’s commercial history to recover. To use this terminal, follow these steps:
`Bash
Curl -x get \
\
-H ‘Type of Content: App/JSON’ \
-H ‘Authorization: bearer your_api_key’
`
Replace your_api_key
with your royal API key.
Example of use of cases
Here are some cases of example use for these APIs:
* Recover a user’s Ethereum Deposit History : You can consult the end point /API/V3/Transactionsnory
to recover all transactions made by a specific user. To do this, you will need to add an Account_id
parameter to Endpoint.
`Bash
Curl -x get \
\
-H ‘Type of Content: App/JSON’ \
-H ‘Authorization: bearer your_api_key’
`
* Recover a user’s Ethereum withdrawal history
: You can consult Endpoint /API/V2/Orders
to recover all requests made by a specific user. To do this, you will need to add an Account_id
parameter to Endpoint.
`Bash
Curl -x get \
\
-H ‘Type of Content: App/JSON’ \
-H ‘Authorization: bearer your_api_key’
`
* Recover the user’s Ethereum Trade History : You can consult the end point /API/V2/Tradehistory
to recover all negotiations made by a specific user. To do this, you will need to add an Account_id
parameter to Endpoint.
I hope this will help! Let you know if you have any questions or need more assistance.