Endpoint:
Method: POST
Type: RAW
URL: YOUR.STATIC.IP.ADDRESS/accountsBody:
{
"stub": "{{account_alias}}",
"exchange": "{{exchange_id}}",
"apiKey": "{{exchange_api_key}}",
"secret": "{{exchange_api_secret}}"
}More example Requests/Responses:
Headers:
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | |
| charset | utf-8 |
Body:
{
"stub": "{{account_alias}}",
"exchange": "{{exchange_id}}",
"apiKey": "{{exchange_api_key}}",
"secret": "{{exchange_api_secret}}"
}Status Code: 0
Headers:
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | |
| charset | utf-8 |
Body:
{
"stub": "{{account_alias}}",
"subaccount": "{{subaccount_alias}}",
"exchange": "ftx",
"apiKey": "{{exchange_api_key}}",
"secret": "{{exchange_api_secret}}"
}Status Code: 0
Headers:
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | |
| charset | utf-8 |
Body:
{
"stub": "{{account_alias}}",
"exchange": "kucoin",
"apiKey": "{{exchange_api_key}}",
"secret": "{{exchange_api_secret}}",
"passphrase": "{{exchange_api_passphrase}}"
}Status Code: 0
Endpoint:
Method: GET
Type:
URL: YOUR.STATIC.IP.ADDRESS/accountsEndpoint:
Method: GET
Type:
URL: YOUR.STATIC.IP.ADDRESS/accountsEndpoint:
Method: DELETE
Type:
URL: YOUR.STATIC.IP.ADDRESS/accounts/MAINEndpoint:
Method: GET
Type:
URL: YOUR.STATIC.IP.ADDRESS/balances/MAINEndpoint:
Method: GET
Type:
URL: YOUR.STATIC.IP.ADDRESS/balancesEndpoint:
Method: GET
Type:
URL: YOUR.STATIC.IP.ADDRESS/healthEndpoint:
Method: GET
Type:
URL: YOUR.STATIC.IP.ADDRESS/markets/ftxEndpoint:
Method: POST
Type:
URL: YOUR.STATIC.IP.ADDRESS/tradesMore example Requests/Responses:
Headers:
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | |
| charset | utf-8 |
Status Code: 0
Headers:
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | |
| charset | utf-8 |
Body:
{
"stub": "test",
"symbol": "ETH-PERP",
"direction": "close",
"size": "33%"
}Status Code: 0
Endpoint:
Method: POST
Type: RAW
URL: YOUR.STATIC.IP.ADDRESS/tradesBody:
{
"stub": "test",
"symbol": "ETH-PERP",
"size": "11",
"direction": "short"
}More example Requests/Responses:
Headers:
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | |
| charset | utf-8 |
Body:
{
"stub": "test",
"symbol": "ETH-PERP",
"size": "11",
"direction": "long"
}Status Code: 0
Headers:
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | |
| charset | utf-8 |
Body:
{
"stub": "test",
"symbol": "ETH-PERP",
"size": "11",
"direction": "short"
}Status Code: 0
III. Example Request: Long position with XX% of available collateral (Futures) or available balance (Spot)
Headers:
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | |
| charset | utf-8 |
Body:
{
"stub": "test",
"symbol": "ETH-PERP",
"size": "5%",
"direction": "long"
}Status Code: 0
IV. Example Request: Short position with XX% of available collateral (Futures) or available balance (Spot)
Headers:
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | |
| charset | utf-8 |
Body:
{
"stub": "test",
"symbol": "ETH-PERP",
"size": "5%",
"direction": "short"
}Status Code: 0
Endpoint:
Method: POST
Type: RAW
URL: YOUR.STATIC.IP.ADDRESS/tradesBody:
[
{
"stub": "test",
"symbol": "ETH-PERP",
"size": "11",
"direction": "long"
},
{
"stub": "test",
"symbol": "BTC-PERP",
"size": "11",
"direction": "long"
}
]Available Variables:
| Key | Value | Type |
|---|---|---|
| server_ip | YOUR.STATIC.IP.ADDRESS | |
| account_alias | MAIN | |
| subaccount_alias | ||
| exchange_id | ftx | |
| exchange_api_key | YOUR_API_KEY | |
| exchange_api_secret | YOUR_API_SECRET | |
| exchange_api_passphrase | YOUR_KUCOIN_PASSPHRASE |
Made with ♥ by thedevsaddam | Generated at: 2021-09-21 17:48:47 by docgen