Binance API Postman Collections

repository·master·Indexed 23 days ago

https://github.com/binance/binance-api-postman

Official Postman Collections and Environments for the Binance RESTful APIs. Includes instructions for importing assets, configuring API and Secret Keys, safety practices for key management, and troubleshooting common API errors.

Tokens
588
Snippets
0
Records
4
Agent score
32%

What's inside binance-api-postman

  1. Import and configure Binance API Postman collections

    master

    To use the Binance RESTful APIs via Postman, follow these steps to import the provided collections and environments:

    1. Download: Download the binance-api-postman repository.
    2. Import: In Postman, click the Import button (top left) and select the root folder of the downloaded repository.
    3. Select Assets: Choose the specific collections and environments you wish to import and click Import.
    4. Configure Credentials:
      • Select the Environments tab on the left sidebar.
      • Choose an environment.
      • Set your API and Secret Key by entering them in the Current Value column.
    5. Activate Environment: Select your newly configured environment from the environment dropdown menu (located at the top right, next to the eye icon).
  2. Postman safety practices for Binance API keys

    master

    To secure your account when using Postman collections, follow these safety guidelines:

    • Source Verification: Only use collections obtained from known, trusted sources.
    • Review Files: Always review the environment JSON file before using it.
    • Code Audit: Do not use any scripts or code that you do not understand.
    • Permission Management: Ensure that withdrawal permission is NOT enabled for your API keys.
    • Cleanup: Delete your API keys once you have finished testing the API.
  3. Debug requests and URLs in Postman

    master

    If you need to inspect the actual URL or parameters being sent to Binance:

    • Postman Console: Open the Postman console to view the full request details, including parameters and the final URL.
    • Pre-request Scripts: You can debug or modify request behavior by editing the Pre-request Script tab within the request.
  4. Troubleshoot Binance API errors in Postman

    master

    Common errors and their likely causes:

    API-key format invalid.

    • The API key is not set or is incorrect.
    • The X-MBX-APIKEY header is not selected in your Postman Headers tab.

    Signature for this request is not valid.

    • The Secret key is not set.
    • The request was made with at least one empty parameter.
    • The signature parameter is not the last parameter in the parameters list.

    Mandatory parameter 'xxxx' was not sent, was empty/null, or malformed.

    • Check the official Binance API documentation to verify all mandatory parameters for that specific endpoint.

    No response received

    • You likely haven't imported the environment file, or you have imported it but haven't selected it from the environment dropdown menu.