Postman is an API Collaboration Platform.
Binance now offers several Postman Collections for quick and easy usage of our RESTful APIs.
We also provide a Postman environment (JSON configuration file), which can be conveniently imported for use with your own API and secret keys.
-
Download the Repository.
-
Click the
Import
button. On Postman for Mac, for example, the button is at the top left: -
On the
Import
pop-up page, select theFolder
tab. Click theChoose folder from your computer
button and choose the root folder of the downloaded repository. -
Select which collections and environments you would like to import and click the
Import
button. -
Select the
Environments
tab on the left, choose an environment, and set your Api Key and Secret by changing theCurrent Value
column (see screenshot); otherwise, Postman will upload your credentials into your personal Postman account. (TheTimestamp
,Signature
,Initial Value
fields can be left empty. Postman will fill inInitial Value
with what you provide inCurrent Value
.) -
Select your newly-added environment from the environment dropdown menu. On Mac, this is at top right, to the left of the eye icon.
A guide to using the Binance Spot API Postman Collections can be found here:
https://academy.binance.com/economics/binance-api-series-pt-1-spot-trading-with-postman
We suggest that users develop their own applications to work with the Binance Spot API; however, with Postman you can quickly get a feel for each of the API endpoints.
For your safety, please follow these Postman best practices:
- Don't use Collections obtained from an unknown source.
- Review the environment JSON file before use.
- Don't use any code that you don't understand.
- Make sure that the withdrawal permission is not enabled for your API keys.
- When you're finished trying out the API, delete your API keys.
You haven't imported the environment file, or you've imported it but haven't selected it from the dropdown. Please follow the the steps above to import and select the environment in Postman.
Likely causes:
- Your API key is not set.
- Your API key is not correct.
- You have not selected
X-MBX-APIKEY
in your PostmanHeaders
.
Likely causes:
- You haven't set your secret key.
- You've selected parameters for which no value was passed. If you aren't using a parameter, uncheck it.
- The parameter
signature
is not at the last of the parameter list.
Your request is missing a parameter that the API requires. Please refer to the API documentation, and pass all mandatory parameters in your requests.
- Open the Postman console
(CMD/CTRL + ALT + C)
. Each request will print out its parameters and URL. - To debug, edit your
Pre-request
scripts.
Please open an issue here.
MIT