Postman is an API Collaboration Platform.
Binance now offers several Postman Collections and Environments (JSON files) for a quicker and easier usage of our RESTful APIs.
You only need to import and set up with your own API and secret keys to begin.
-
Download the
binance-api-postmanrepository. -
Click the
Importbutton. On Postman for Mac, for example, the button is at the top left: -
On the
Importpop-up page, select the root folder of the downloaded repository. -
Select which collections and environments you would like to import and click the
Importbutton. -
Select the
Environmentstab on the left, choose an environment, and set your API and Secret Key by changing theCurrent Valuecolumn (see screenshot); -
Select your newly-added environment from the environment dropdown menu. On Mac, this is at top right, to the left of the eye icon.
The following practices are advised to secure your account's safety:
- Don't use Collections obtained from an unknown source.
- Review the environment JSON file before its usage.
- 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 finish trying out the API, delete your API keys.
Q: Why I can't get any response?
You haven't imported the environment file or you've imported it but haven't selected it from the dropdown menu (mentioned in [[How to import and configure]])
Q: How can I debug a request or find the used URL?
- Open the Postman's console to find requests' parameters and URL.
- Debugging can be done by editing the
Pre-request Scripttab.
Q: Error API-key format invalid.
Likely causes:
- API key is not set.
- API key is not correct.
X-MBX-APIKEYis not selected in your PostmanHeaderstab.
Q: Error Signature for this request is not valid.
Likely causes:
- Secret key is not set.
- Request was made with at least one empty parameter.
signatureis not the last parameter in the parameters list.
Q: Error Mandatory parameter 'xxxx' was not sent, was empty/null, or malformed.
Please refer to the API documentation to double check all the mandatory parameters.
If you don't find your answer here, please consult https://dev.binance.vision/ for similar questions from the community or open an issue here.
Since this repository contains auto-generated code using OpenAPI Generator, we encourage you to:
- Open a GitHub issue to discuss your ideas or report bugs
- Allow maintainers to implement necessary changes through the code generation process
These Postman Collections are provided by Binance on an "as is" and "as available" basis for use at your own risk. Binance makes no representations or warranties of any kind, whether express or implied, as to the operation of the collections, their accuracy, reliability, completeness, or fitness for any particular purpose.
To the fullest extent permitted by law, Binance shall not be liable for any losses, damages, or expenses of any kind arising from or in connection with your use of, or inability to use, these collections, including but not limited to any financial losses resulting from errors, bugs, interruptions, or inaccuracies in the collections.
Your use of these collections to access the Binance Platform is subject to the Binance API Key Terms and the Binance Terms of Use, which shall prevail in the event of any conflict with this disclaimer. You are solely responsible for any orders or transactions executed through the Binance Platform using these collections.
This SDK is not intended to constitute investment advice or a recommendation to buy, sell, or hold any digital asset. You should independently evaluate and verify all information before acting.
This project is licensed under the MIT License - see the LICENSE file for details.




