Skip to main content

External Referral Program

Introduction

FTX US allows you to build your own External Referral Program (ERP). These offer a way for you to:

  • Execute trades via API on behalf of users that give you permission to do so
  • (Optional) Implement FTX US Single Sign-On to expedite API key collection
  • Share revenue from those trades; you are paid 30% of the fees they generate

Getting Started

Fill out this form to indicate interest in the External Referral Program/Single Sign-On and provide information on the proposed integration.

Collect keys

Partners who have integrated Single Sign-On can create a user's API keys with their respective bearer token. If using SSO, you can call https://ftx.us/api/api_keys to create the API keys linked to your ERP.

Alternatively, you may ask your users to go to https://ftx.us/external-program-api-keys to create the API keys for your program and give them to you. By default these will be trading-enabled but not withdrawal-enabled.

Screen_Shot_2020-06-02_at_2.20.23_AM.png

 

Verify keys are associated with your program


For each pair of keys you are given, query the ftx.us/api/api_key_status endpoint to verify that they are associated with your program. You should see a response like so:

{'enabled': True,
'externalReferralProgram': 'TradeX100',
'readOnly': False,
'requireWhitelistedIp': False,
'subaccountNickname': None,
'withdrawalEnabled': False}

If the keys you have are not associated with your program (if, for instance, you collected keys before creating your external program), you can submit an `externalReferralProgram` argument to the `POST api/orders` endpoint. Orders tagged with that parameter (whose value should be set to your program's name, case-sensitive) will be associated with your program, just as if they had been requested with keys associated with your program.

1642157927003POST/api/orders
{"clientId":"example_client_id”,
"size":0.141,
"market":"BTC/USD",
"type":"limit",
"price":2125.0,
"side":"sell”,
”externalReferralProgram”:“YOURREFCODEGOESHERE”}

 

Trade and collect a fraction of fees

You will be paid 30% of all fees (according to the same scheme described here) generated by orders sent using keys associated with your program. The payments are daily and are reflected on the Referrals page.