Binance

This article is designed to help you create & identify the required information for Binance API key parameters for use with CAS. The graphics within were based on Binance US as of May 2020.

Binance will reject any connections from a US IP.

  • If your CAS server is hosted in the US, you must use “Binance US”.

1. Login to Binance.

  • 2FA authentication MUST be active to create API Keys!

  • Setup 2FA now (if you haven't already).


2. Create the API keys.

Navigate to the API Key section in Site Settings:


Create a new API private key:

  • Name it & click “create”.

  • Confirm the 2FA authentication.

  • Confirm the confirmation email.

  • Navigate back to your API key list.


Copy the API & Secret Keys immediately!

Your "Secret Key" will only be available once here, so save them BOTH now.

  • You’ll use both of these keys in Step 3.


Enable all access for the new API Key.

Carefully set these options. A mistake here will not be caught by the Crypto Setting tests, but will result in failed transactions during live testing.

Remove restrictions:

Add your CAS server IP to the whitelist:

Enable withdrawals:

Save the new permissions:

  • Confirm the 2FA authentication.

  • Confirm the confirmation email.


3. Configure the Crypto Setting.

Assemble your CAS Parameters:

The API Key and API Secret were located in the previous step (2).

Example using the keys illustrated above:

  • Key: EotfWIqHN1368TL34DnzbOpznYXAslGq8ZOSZz1jLdmwEC2l4EvINAIo8Ys9U5n2

  • Secret: 4ATNJ6pRNvyoISGOLXSEs9RODg8hSLyC8XnsGn79AeG2V1iXm7WPZfAeIKccK4PW

  • The fiat used for this account in this example is US Dollars, so we append “USD”.

Resulting in this parameter string:

Select the appropriate Binance Exchange & Rate Source:

  • Be sure to enter the parameter string as determined above.


4. Save the Crypto Setting!


5. Test it (you’re done):

Copyright © 2020-2024 General Bytes USA LLC