GoCryptoTrader
GoCryptoTrader_AddEvent
Code samples
# You can also use wget
curl -X POST /v1/addevent \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/addevent HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"item": "string",
"conditionParams": {
"condition": "string",
"price": 0,
"checkBids": true,
"checkAsks": true,
"orderbookAmount": 0
},
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string",
"action": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/addevent',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/addevent',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/addevent', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/addevent', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/addevent");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/addevent", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/addevent
Body parameter
{
"exchange": "string",
"item": "string",
"conditionParams": {
"condition": "string",
"price": 0,
"checkBids": true,
"checkAsks": true,
"orderbookAmount": 0
},
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string",
"action": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcAddEventRequest | true | none |
Example responses
200 Response
{
"id": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcAddEventResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_AddPortfolioAddress
Code samples
# You can also use wget
curl -X POST /v1/addportfolioaddress \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/addportfolioaddress HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"address": "string",
"coinType": "string",
"description": "string",
"balance": 0,
"supportedExchanges": "string",
"coldStorage": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/addportfolioaddress',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/addportfolioaddress',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/addportfolioaddress', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/addportfolioaddress', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/addportfolioaddress");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/addportfolioaddress", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/addportfolioaddress
Body parameter
{
"address": "string",
"coinType": "string",
"description": "string",
"balance": 0,
"supportedExchanges": "string",
"coldStorage": true
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcAddPortfolioAddressRequest | true | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_CancelAllOrders
Code samples
# You can also use wget
curl -X POST /v1/cancelallorders \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/cancelallorders HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/cancelallorders',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/cancelallorders',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/cancelallorders', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/cancelallorders', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/cancelallorders");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/cancelallorders", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/cancelallorders
Body parameter
{
"exchange": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcCancelAllOrdersRequest | true | none |
Example responses
200 Response
{
"orders": [
{
"exchange": "string",
"orderStatus": {
"property1": "string",
"property2": "string"
}
}
],
"count": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcCancelAllOrdersResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_CancelBatchOrders
Code samples
# You can also use wget
curl -X POST /v1/cancelbatchorders \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/cancelbatchorders HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"accountId": "string",
"ordersId": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string",
"walletAddress": "string",
"side": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/cancelbatchorders',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/cancelbatchorders',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/cancelbatchorders', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/cancelbatchorders', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/cancelbatchorders");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/cancelbatchorders", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/cancelbatchorders
Body parameter
{
"exchange": "string",
"accountId": "string",
"ordersId": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string",
"walletAddress": "string",
"side": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcCancelBatchOrdersRequest | true | none |
Example responses
200 Response
{
"orders": [
{
"orderStatus": {
"property1": "string",
"property2": "string"
}
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcCancelBatchOrdersResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_CancelOrder
Code samples
# You can also use wget
curl -X POST /v1/cancelorder \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/cancelorder HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"accountId": "string",
"orderId": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string",
"walletAddress": "string",
"side": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/cancelorder',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/cancelorder',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/cancelorder', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/cancelorder', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/cancelorder");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/cancelorder", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/cancelorder
Body parameter
{
"exchange": "string",
"accountId": "string",
"orderId": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string",
"walletAddress": "string",
"side": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcCancelOrderRequest | true | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_ConvertTradesToCandles
Code samples
# You can also use wget
curl -X GET /v1/converttradestocandles \
-H 'Accept: application/json'
GET /v1/converttradestocandles HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/converttradestocandles',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/converttradestocandles',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/converttradestocandles', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/converttradestocandles', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/converttradestocandles");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/converttradestocandles", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/converttradestocandles
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
pair.delimiter | query | string | false | none |
pair.base | query | string | false | none |
pair.quote | query | string | false | none |
assetType | query | string | false | none |
start | query | string | false | none |
end | query | string | false | none |
timeInterval | query | string(int64) | false | none |
sync | query | boolean | false | none |
force | query | boolean | false | none |
Example responses
200 Response
{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"start": "string",
"end": "string",
"interval": "string",
"candle": [
{
"time": "string",
"low": 0,
"high": 0,
"open": 0,
"close": 0,
"volume": 0
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetHistoricCandlesResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_DisableExchange
Code samples
# You can also use wget
curl -X POST /v1/disableexchange \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/disableexchange HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/disableexchange',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/disableexchange',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/disableexchange', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/disableexchange', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/disableexchange");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/disableexchange", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/disableexchange
Body parameter
{
"exchange": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcGenericExchangeNameRequest | true | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_DisableSubsystem
Code samples
# You can also use wget
curl -X GET /v1/disablesubsystem \
-H 'Accept: application/json'
GET /v1/disablesubsystem HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/disablesubsystem',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/disablesubsystem',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/disablesubsystem', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/disablesubsystem', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/disablesubsystem");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/disablesubsystem", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/disablesubsystem
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
subsystem | query | string | false | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_EnableExchange
Code samples
# You can also use wget
curl -X POST /v1/enableexchange \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/enableexchange HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/enableexchange',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/enableexchange',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/enableexchange', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/enableexchange', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/enableexchange");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/enableexchange", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/enableexchange
Body parameter
{
"exchange": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcGenericExchangeNameRequest | true | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_EnableSubsystem
Code samples
# You can also use wget
curl -X GET /v1/enablesubsystem \
-H 'Accept: application/json'
GET /v1/enablesubsystem HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/enablesubsystem',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/enablesubsystem',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/enablesubsystem', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/enablesubsystem', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/enablesubsystem");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/enablesubsystem", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/enablesubsystem
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
subsystem | query | string | false | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_FindMissingSavedCandleIntervals
Code samples
# You can also use wget
curl -X GET /v1/findmissingsavedcandleintervals \
-H 'Accept: application/json'
GET /v1/findmissingsavedcandleintervals HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/findmissingsavedcandleintervals',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/findmissingsavedcandleintervals',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/findmissingsavedcandleintervals', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/findmissingsavedcandleintervals', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/findmissingsavedcandleintervals");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/findmissingsavedcandleintervals", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/findmissingsavedcandleintervals
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchangeName | query | string | false | none |
assetType | query | string | false | none |
pair.delimiter | query | string | false | none |
pair.base | query | string | false | none |
pair.quote | query | string | false | none |
interval | query | string(int64) | false | none |
start | query | string | false | none |
end | query | string | false | none |
Example responses
200 Response
{
"exchangeName": "string",
"assetType": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"missingPeriods": [
"string"
],
"status": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcFindMissingIntervalsResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_FindMissingSavedTradeIntervals
Code samples
# You can also use wget
curl -X GET /v1/findmissingsavedtradeintervals \
-H 'Accept: application/json'
GET /v1/findmissingsavedtradeintervals HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/findmissingsavedtradeintervals',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/findmissingsavedtradeintervals',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/findmissingsavedtradeintervals', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/findmissingsavedtradeintervals', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/findmissingsavedtradeintervals");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/findmissingsavedtradeintervals", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/findmissingsavedtradeintervals
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchangeName | query | string | false | none |
assetType | query | string | false | none |
pair.delimiter | query | string | false | none |
pair.base | query | string | false | none |
pair.quote | query | string | false | none |
start | query | string | false | none |
end | query | string | false | none |
Example responses
200 Response
{
"exchangeName": "string",
"assetType": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"missingPeriods": [
"string"
],
"status": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcFindMissingIntervalsResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GCTScriptAutoLoadToggle
Code samples
# You can also use wget
curl -X POST /v1/gctscript/autoload \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/gctscript/autoload HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"script": "string",
"status": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/gctscript/autoload',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/gctscript/autoload',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/gctscript/autoload', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/gctscript/autoload', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/gctscript/autoload");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/gctscript/autoload", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/gctscript/autoload
Body parameter
{
"script": "string",
"status": true
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcGCTScriptAutoLoadRequest | true | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GCTScriptExecute
Code samples
# You can also use wget
curl -X GET /v1/gctscript/execute \
-H 'Accept: application/json'
GET /v1/gctscript/execute HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/gctscript/execute',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/gctscript/execute',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/gctscript/execute', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/gctscript/execute', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/gctscript/execute");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/gctscript/execute", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/gctscript/execute
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
script.UUID | query | string | false | none |
script.name | query | string | false | none |
script.path | query | string | false | none |
script.nextRun | query | string | false | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GCTScriptQuery
Code samples
# You can also use wget
curl -X GET /v1/gctscript/query \
-H 'Accept: application/json'
GET /v1/gctscript/query HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/gctscript/query',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/gctscript/query',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/gctscript/query', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/gctscript/query', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/gctscript/query");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/gctscript/query", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/gctscript/query
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
script.UUID | query | string | false | none |
script.name | query | string | false | none |
script.path | query | string | false | none |
script.nextRun | query | string | false | none |
Example responses
200 Response
{
"status": "string",
"script": {
"UUID": "string",
"name": "string",
"path": "string",
"nextRun": "string"
},
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGCTScriptQueryResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GCTScriptReadScript
Code samples
# You can also use wget
curl -X POST /v1/gctscript/read \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/gctscript/read HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"script": {
"UUID": "string",
"name": "string",
"path": "string",
"nextRun": "string"
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/gctscript/read',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/gctscript/read',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/gctscript/read', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/gctscript/read', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/gctscript/read");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/gctscript/read", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/gctscript/read
Body parameter
{
"script": {
"UUID": "string",
"name": "string",
"path": "string",
"nextRun": "string"
}
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcGCTScriptReadScriptRequest | true | none |
Example responses
200 Response
{
"status": "string",
"script": {
"UUID": "string",
"name": "string",
"path": "string",
"nextRun": "string"
},
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGCTScriptQueryResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GCTScriptStatus
Code samples
# You can also use wget
curl -X GET /v1/gctscript/status \
-H 'Accept: application/json'
GET /v1/gctscript/status HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/gctscript/status',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/gctscript/status',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/gctscript/status', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/gctscript/status', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/gctscript/status");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/gctscript/status", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/gctscript/status
Example responses
200 Response
{
"status": "string",
"scripts": [
{
"UUID": "string",
"name": "string",
"path": "string",
"nextRun": "string"
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGCTScriptStatusResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GCTScriptListAll
Code samples
# You can also use wget
curl -X POST /v1/gctscript/stop \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/gctscript/stop HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/gctscript/stop',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/gctscript/stop',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/gctscript/stop', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/gctscript/stop', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/gctscript/stop");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/gctscript/stop", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/gctscript/stop
Body parameter
{}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcGCTScriptListAllRequest | true | none |
Example responses
200 Response
{
"status": "string",
"scripts": [
{
"UUID": "string",
"name": "string",
"path": "string",
"nextRun": "string"
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGCTScriptStatusResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GCTScriptUpload
Code samples
# You can also use wget
curl -X POST /v1/gctscript/upload \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/gctscript/upload HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"scriptName": "string",
"scriptData": "string",
"data": "string",
"archived": true,
"overwrite": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/gctscript/upload',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/gctscript/upload',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/gctscript/upload', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/gctscript/upload', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/gctscript/upload");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/gctscript/upload", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/gctscript/upload
Body parameter
{
"scriptName": "string",
"scriptData": "string",
"data": "string",
"archived": true,
"overwrite": true
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcGCTScriptUploadRequest | true | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetAccountInfo
Code samples
# You can also use wget
curl -X GET /v1/getaccountinfo \
-H 'Accept: application/json'
GET /v1/getaccountinfo HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getaccountinfo',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getaccountinfo',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getaccountinfo', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getaccountinfo', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getaccountinfo");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getaccountinfo", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getaccountinfo
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
assetType | query | string | false | none |
Example responses
200 Response
{
"exchange": "string",
"accounts": [
{
"id": "string",
"currencies": [
{
"currency": "string",
"totalValue": 0,
"hold": 0
}
]
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetAccountInfoResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetAccountInfoStream
Code samples
# You can also use wget
curl -X GET /v1/getaccountinfostream \
-H 'Accept: application/json'
GET /v1/getaccountinfostream HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getaccountinfostream',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getaccountinfostream',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getaccountinfostream', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getaccountinfostream', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getaccountinfostream");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getaccountinfostream", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getaccountinfostream
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
assetType | query | string | false | none |
Example responses
200 Response
{
"result": {
"exchange": "string",
"accounts": [
{
"id": "string",
"currencies": [
{
"currency": "string",
"totalValue": 0,
"hold": 0
}
]
}
]
},
"error": {
"code": 0,
"message": "string",
"details": [
{
"typeUrl": "string",
"value": "string"
}
]
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response.(streaming responses) | Inline |
default | Default | An unexpected error response. | rpcStatus |
Response Schema
Status Code 200
Stream result of gctrpcGetAccountInfoResponse
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» result | gctrpcGetAccountInfoResponse | false | none | none |
»» exchange | string | false | none | none |
»» accounts | [gctrpcAccount] | false | none | none |
»»» id | string | false | none | none |
»»» currencies | [gctrpcAccountCurrencyInfo] | false | none | none |
»»»» currency | string | false | none | none |
»»»» totalValue | number(double) | false | none | none |
»»»» hold | number(double) | false | none | none |
» error | rpcStatus | false | none | none |
»» code | integer(int32) | false | none | none |
»» message | string | false | none | none |
»» details | [protobufAny] | false | none | none |
»»» typeUrl | string | false | none | none |
»»» value | string(byte) | false | none | none |
GoCryptoTrader_GetActiveDataHistoryJobs
Code samples
# You can also use wget
curl -X GET /v1/getactivedatahistoryjobs \
-H 'Accept: application/json'
GET /v1/getactivedatahistoryjobs HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getactivedatahistoryjobs',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getactivedatahistoryjobs',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getactivedatahistoryjobs', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getactivedatahistoryjobs', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getactivedatahistoryjobs");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getactivedatahistoryjobs", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getactivedatahistoryjobs
Example responses
200 Response
{
"results": [
{
"id": "string",
"nickname": "string",
"exchange": "string",
"asset": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"startDate": "string",
"endDate": "string",
"interval": "string",
"requestSizeLimit": "string",
"maxRetryAttempts": "string",
"batchSize": "string",
"status": "string",
"dataType": "string",
"conversionInterval": "string",
"overwriteExistingData": true,
"prerequisiteJobNickname": "string",
"decimalPlaceComparison": "string",
"secondaryExchangeName": "string",
"issueTolerancePercentage": 0,
"replaceOnIssue": true,
"jobResults": [
{
"startDate": "string",
"endDate": "string",
"hasData": true,
"message": "string",
"runDate": "string"
}
],
"resultSummaries": [
"string"
]
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcDataHistoryJobs |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetAuditEvent
Code samples
# You can also use wget
curl -X GET /v1/getauditevent \
-H 'Accept: application/json'
GET /v1/getauditevent HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getauditevent',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getauditevent',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getauditevent', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getauditevent', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getauditevent");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getauditevent", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getauditevent
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
startDate | query | string | false | none |
endDate | query | string | false | none |
orderBy | query | string | false | none |
limit | query | integer(int32) | false | none |
offset | query | integer(int32) | false | none |
Example responses
200 Response
{
"events": [
{
"type": "string",
"identifier": "string",
"message": "string",
"timestamp": "string"
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetAuditEventResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetCommunicationRelayers
Code samples
# You can also use wget
curl -X GET /v1/getcommunicationrelayers \
-H 'Accept: application/json'
GET /v1/getcommunicationrelayers HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getcommunicationrelayers',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getcommunicationrelayers',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getcommunicationrelayers', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getcommunicationrelayers', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getcommunicationrelayers");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getcommunicationrelayers", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getcommunicationrelayers
Example responses
200 Response
{
"communicationRelayers": {
"property1": {
"enabled": true,
"connected": true
},
"property2": {
"enabled": true,
"connected": true
}
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetCommunicationRelayersResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetConfig
Code samples
# You can also use wget
curl -X GET /v1/getconfig \
-H 'Accept: application/json'
GET /v1/getconfig HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getconfig',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getconfig',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getconfig', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getconfig', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getconfig");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getconfig", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getconfig
Example responses
200 Response
{
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetConfigResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetCryptocurrencyDepositAddress
Code samples
# You can also use wget
curl -X POST /v1/getcryptodepositaddress \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/getcryptodepositaddress HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"cryptocurrency": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/getcryptodepositaddress',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/getcryptodepositaddress',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/getcryptodepositaddress', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/getcryptodepositaddress', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getcryptodepositaddress");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/getcryptodepositaddress", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/getcryptodepositaddress
Body parameter
{
"exchange": "string",
"cryptocurrency": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcGetCryptocurrencyDepositAddressRequest | true | none |
Example responses
200 Response
{
"address": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetCryptocurrencyDepositAddressResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetCryptocurrencyDepositAddresses
Code samples
# You can also use wget
curl -X POST /v1/getcryptodepositaddresses \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/getcryptodepositaddresses HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/getcryptodepositaddresses',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/getcryptodepositaddresses',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/getcryptodepositaddresses', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/getcryptodepositaddresses', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getcryptodepositaddresses");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/getcryptodepositaddresses", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/getcryptodepositaddresses
Body parameter
{
"exchange": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcGetCryptocurrencyDepositAddressesRequest | true | none |
Example responses
200 Response
{
"addresses": {
"property1": "string",
"property2": "string"
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetCryptocurrencyDepositAddressesResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetDataHistoryJobDetails
Code samples
# You can also use wget
curl -X GET /v1/getdatahistoryjobdetails \
-H 'Accept: application/json'
GET /v1/getdatahistoryjobdetails HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getdatahistoryjobdetails',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getdatahistoryjobdetails',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getdatahistoryjobdetails', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getdatahistoryjobdetails', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getdatahistoryjobdetails");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getdatahistoryjobdetails", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getdatahistoryjobdetails
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
id | query | string | false | none |
nickname | query | string | false | none |
fullDetails | query | boolean | false | none |
Example responses
200 Response
{
"id": "string",
"nickname": "string",
"exchange": "string",
"asset": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"startDate": "string",
"endDate": "string",
"interval": "string",
"requestSizeLimit": "string",
"maxRetryAttempts": "string",
"batchSize": "string",
"status": "string",
"dataType": "string",
"conversionInterval": "string",
"overwriteExistingData": true,
"prerequisiteJobNickname": "string",
"decimalPlaceComparison": "string",
"secondaryExchangeName": "string",
"issueTolerancePercentage": 0,
"replaceOnIssue": true,
"jobResults": [
{
"startDate": "string",
"endDate": "string",
"hasData": true,
"message": "string",
"runDate": "string"
}
],
"resultSummaries": [
"string"
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcDataHistoryJob |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetDataHistoryJobsBetween
Code samples
# You can also use wget
curl -X GET /v1/getdatahistoryjobsbetween \
-H 'Accept: application/json'
GET /v1/getdatahistoryjobsbetween HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getdatahistoryjobsbetween',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getdatahistoryjobsbetween',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getdatahistoryjobsbetween', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getdatahistoryjobsbetween', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getdatahistoryjobsbetween");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getdatahistoryjobsbetween", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getdatahistoryjobsbetween
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
startDate | query | string | false | none |
endDate | query | string | false | none |
Example responses
200 Response
{
"results": [
{
"id": "string",
"nickname": "string",
"exchange": "string",
"asset": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"startDate": "string",
"endDate": "string",
"interval": "string",
"requestSizeLimit": "string",
"maxRetryAttempts": "string",
"batchSize": "string",
"status": "string",
"dataType": "string",
"conversionInterval": "string",
"overwriteExistingData": true,
"prerequisiteJobNickname": "string",
"decimalPlaceComparison": "string",
"secondaryExchangeName": "string",
"issueTolerancePercentage": 0,
"replaceOnIssue": true,
"jobResults": [
{
"startDate": "string",
"endDate": "string",
"hasData": true,
"message": "string",
"runDate": "string"
}
],
"resultSummaries": [
"string"
]
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcDataHistoryJobs |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetDataHistoryJobSummary
Code samples
# You can also use wget
curl -X GET /v1/getdatahistoryjobsummary \
-H 'Accept: application/json'
GET /v1/getdatahistoryjobsummary HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getdatahistoryjobsummary',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getdatahistoryjobsummary',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getdatahistoryjobsummary', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getdatahistoryjobsummary', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getdatahistoryjobsummary");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getdatahistoryjobsummary", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getdatahistoryjobsummary
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
id | query | string | false | none |
nickname | query | string | false | none |
fullDetails | query | boolean | false | none |
Example responses
200 Response
{
"id": "string",
"nickname": "string",
"exchange": "string",
"asset": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"startDate": "string",
"endDate": "string",
"interval": "string",
"requestSizeLimit": "string",
"maxRetryAttempts": "string",
"batchSize": "string",
"status": "string",
"dataType": "string",
"conversionInterval": "string",
"overwriteExistingData": true,
"prerequisiteJobNickname": "string",
"decimalPlaceComparison": "string",
"secondaryExchangeName": "string",
"issueTolerancePercentage": 0,
"replaceOnIssue": true,
"jobResults": [
{
"startDate": "string",
"endDate": "string",
"hasData": true,
"message": "string",
"runDate": "string"
}
],
"resultSummaries": [
"string"
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcDataHistoryJob |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetEvents
Code samples
# You can also use wget
curl -X GET /v1/getevents \
-H 'Accept: application/json'
GET /v1/getevents HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getevents',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getevents',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getevents', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getevents', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getevents");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getevents", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getevents
Example responses
200 Response
{
"id": "string",
"exchange": "string",
"item": "string",
"conditionParams": {
"condition": "string",
"price": 0,
"checkBids": true,
"checkAsks": true,
"orderbookAmount": 0
},
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"action": "string",
"executed": true
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetEventsResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetExchangeAssets
Code samples
# You can also use wget
curl -X GET /v1/getexchangeassets \
-H 'Accept: application/json'
GET /v1/getexchangeassets HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getexchangeassets',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getexchangeassets',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getexchangeassets', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getexchangeassets', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getexchangeassets");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getexchangeassets", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getexchangeassets
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
Example responses
200 Response
{
"assets": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetExchangeAssetsResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetExchangeInfo
Code samples
# You can also use wget
curl -X GET /v1/getexchangeinfo \
-H 'Accept: application/json'
GET /v1/getexchangeinfo HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getexchangeinfo',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getexchangeinfo',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getexchangeinfo', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getexchangeinfo', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getexchangeinfo");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getexchangeinfo", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getexchangeinfo
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
Example responses
200 Response
{
"name": "string",
"enabled": true,
"verbose": true,
"usingSandbox": true,
"httpTimeout": "string",
"httpUseragent": "string",
"httpProxy": "string",
"baseCurrencies": "string",
"supportedAssets": {
"property1": {
"availablePairs": "string",
"enabledPairs": "string"
},
"property2": {
"availablePairs": "string",
"enabledPairs": "string"
}
},
"authenticatedApi": true
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetExchangeInfoResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetExchangeOrderbookStream
Code samples
# You can also use wget
curl -X GET /v1/getexchangeorderbookstream \
-H 'Accept: application/json'
GET /v1/getexchangeorderbookstream HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getexchangeorderbookstream',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getexchangeorderbookstream',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getexchangeorderbookstream', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getexchangeorderbookstream', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getexchangeorderbookstream");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getexchangeorderbookstream", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getexchangeorderbookstream
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
Example responses
200 Response
{
"result": {
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"currencyPair": "string",
"bids": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"asks": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"lastUpdated": "string",
"assetType": "string"
},
"error": {
"code": 0,
"message": "string",
"details": [
{
"typeUrl": "string",
"value": "string"
}
]
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response.(streaming responses) | Inline |
default | Default | An unexpected error response. | rpcStatus |
Response Schema
Status Code 200
Stream result of gctrpcOrderbookResponse
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» result | gctrpcOrderbookResponse | false | none | none |
»» pair | gctrpcCurrencyPair | false | none | none |
»»» delimiter | string | false | none | none |
»»» base | string | false | none | none |
»»» quote | string | false | none | none |
»» currencyPair | string | false | none | none |
»» bids | [gctrpcOrderbookItem] | false | none | none |
»»» amount | number(double) | false | none | none |
»»» price | number(double) | false | none | none |
»»» id | string(int64) | false | none | none |
»» asks | [gctrpcOrderbookItem] | false | none | none |
»» lastUpdated | string(int64) | false | none | none |
»» assetType | string | false | none | none |
» error | rpcStatus | false | none | none |
»» code | integer(int32) | false | none | none |
»» message | string | false | none | none |
»» details | [protobufAny] | false | none | none |
»»» typeUrl | string | false | none | none |
»»» value | string(byte) | false | none | none |
GoCryptoTrader_GetExchangeOTPCode
Code samples
# You can also use wget
curl -X GET /v1/getexchangeotp \
-H 'Accept: application/json'
GET /v1/getexchangeotp HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getexchangeotp',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getexchangeotp',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getexchangeotp', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getexchangeotp', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getexchangeotp");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getexchangeotp", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getexchangeotp
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
Example responses
200 Response
{
"otpCode": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetExchangeOTPReponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetExchangeOTPCodes
Code samples
# You can also use wget
curl -X GET /v1/getexchangeotps \
-H 'Accept: application/json'
GET /v1/getexchangeotps HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getexchangeotps',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getexchangeotps',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getexchangeotps', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getexchangeotps', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getexchangeotps");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getexchangeotps", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getexchangeotps
Example responses
200 Response
{
"otpCodes": {
"property1": "string",
"property2": "string"
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetExchangeOTPsResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetExchangePairs
Code samples
# You can also use wget
curl -X POST /v1/getexchangepairs \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/getexchangepairs HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"asset": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/getexchangepairs',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/getexchangepairs',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/getexchangepairs', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/getexchangepairs', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getexchangepairs");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/getexchangepairs", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/getexchangepairs
Body parameter
{
"exchange": "string",
"asset": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcGetExchangePairsRequest | true | none |
Example responses
200 Response
{
"supportedAssets": {
"property1": {
"availablePairs": "string",
"enabledPairs": "string"
},
"property2": {
"availablePairs": "string",
"enabledPairs": "string"
}
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetExchangePairsResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetExchanges
Code samples
# You can also use wget
curl -X GET /v1/getexchanges \
-H 'Accept: application/json'
GET /v1/getexchanges HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getexchanges',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getexchanges',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getexchanges', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getexchanges', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getexchanges");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getexchanges", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getexchanges
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
enabled | query | boolean | false | none |
Example responses
200 Response
{
"exchanges": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetExchangesResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetExchangeTickerStream
Code samples
# You can also use wget
curl -X GET /v1/getexchangetickerstream \
-H 'Accept: application/json'
GET /v1/getexchangetickerstream HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getexchangetickerstream',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getexchangetickerstream',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getexchangetickerstream', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getexchangetickerstream', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getexchangetickerstream");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getexchangetickerstream", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getexchangetickerstream
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
Example responses
200 Response
{
"result": {
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"lastUpdated": "string",
"currencyPair": "string",
"last": 0,
"high": 0,
"low": 0,
"bid": 0,
"ask": 0,
"volume": 0,
"priceAth": 0
},
"error": {
"code": 0,
"message": "string",
"details": [
{
"typeUrl": "string",
"value": "string"
}
]
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response.(streaming responses) | Inline |
default | Default | An unexpected error response. | rpcStatus |
Response Schema
Status Code 200
Stream result of gctrpcTickerResponse
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» result | gctrpcTickerResponse | false | none | none |
»» pair | gctrpcCurrencyPair | false | none | none |
»»» delimiter | string | false | none | none |
»»» base | string | false | none | none |
»»» quote | string | false | none | none |
»» lastUpdated | string(int64) | false | none | none |
»» currencyPair | string | false | none | none |
»» last | number(double) | false | none | none |
»» high | number(double) | false | none | none |
»» low | number(double) | false | none | none |
»» bid | number(double) | false | none | none |
»» ask | number(double) | false | none | none |
»» volume | number(double) | false | none | none |
»» priceAth | number(double) | false | none | none |
» error | rpcStatus | false | none | none |
»» code | integer(int32) | false | none | none |
»» message | string | false | none | none |
»» details | [protobufAny] | false | none | none |
»»» typeUrl | string | false | none | none |
»»» value | string(byte) | false | none | none |
GoCryptoTrader_GetForexProviders
Code samples
# You can also use wget
curl -X GET /v1/getforexproviders \
-H 'Accept: application/json'
GET /v1/getforexproviders HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getforexproviders',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getforexproviders',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getforexproviders', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getforexproviders', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getforexproviders");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getforexproviders", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getforexproviders
Example responses
200 Response
{
"forexProviders": [
{
"name": "string",
"enabled": true,
"verbose": true,
"restPollingDelay": "string",
"apiKey": "string",
"apiKeyLevel": "string",
"primaryProvider": true
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetForexProvidersResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetForexRates
Code samples
# You can also use wget
curl -X GET /v1/getforexrates \
-H 'Accept: application/json'
GET /v1/getforexrates HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getforexrates',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getforexrates',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getforexrates', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getforexrates', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getforexrates");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getforexrates", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getforexrates
Example responses
200 Response
{
"forexRates": [
{
"from": "string",
"to": "string",
"rate": 0,
"inverseRate": 0
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetForexRatesResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetHistoricCandles
Code samples
# You can also use wget
curl -X GET /v1/gethistoriccandles \
-H 'Accept: application/json'
GET /v1/gethistoriccandles HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/gethistoriccandles',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/gethistoriccandles',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/gethistoriccandles', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/gethistoriccandles', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/gethistoriccandles");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/gethistoriccandles", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/gethistoriccandles
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
pair.delimiter | query | string | false | none |
pair.base | query | string | false | none |
pair.quote | query | string | false | none |
assetType | query | string | false | none |
start | query | string | false | none |
end | query | string | false | none |
timeInterval | query | string(int64) | false | none |
exRequest | query | boolean | false | none |
sync | query | boolean | false | none |
useDb | query | boolean | false | none |
fillMissingWithTrades | query | boolean | false | none |
force | query | boolean | false | none |
Example responses
200 Response
{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"start": "string",
"end": "string",
"interval": "string",
"candle": [
{
"time": "string",
"low": 0,
"high": 0,
"open": 0,
"close": 0,
"volume": 0
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetHistoricCandlesResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetInfo
Code samples
# You can also use wget
curl -X GET /v1/getinfo \
-H 'Accept: application/json'
GET /v1/getinfo HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getinfo',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getinfo',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getinfo', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getinfo', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getinfo");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getinfo", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getinfo
Example responses
200 Response
{
"uptime": "string",
"availableExchanges": "string",
"enabledExchanges": "string",
"defaultForexProvider": "string",
"defaultFiatCurrency": "string",
"subsystemStatus": {
"property1": true,
"property2": true
},
"rpcEndpoints": {
"property1": {
"started": true,
"listenAddress": "string"
},
"property2": {
"started": true,
"listenAddress": "string"
}
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetInfoResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetLoggerDetails
Code samples
# You can also use wget
curl -X GET /v1/getloggerdetails \
-H 'Accept: application/json'
GET /v1/getloggerdetails HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getloggerdetails',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getloggerdetails',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getloggerdetails', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getloggerdetails', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getloggerdetails");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getloggerdetails", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getloggerdetails
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
logger | query | string | false | none |
Example responses
200 Response
{
"info": true,
"debug": true,
"warn": true,
"error": true
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetLoggerDetailsResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetManagedOrders
Code samples
# You can also use wget
curl -X POST /v1/getmanagedorders \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/getmanagedorders HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"assetType": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"startDate": "string",
"endDate": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/getmanagedorders',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/getmanagedorders',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/getmanagedorders', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/getmanagedorders', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getmanagedorders");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/getmanagedorders", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/getmanagedorders
Body parameter
{
"exchange": "string",
"assetType": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"startDate": "string",
"endDate": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcGetOrdersRequest | true | none |
Example responses
200 Response
{
"orders": [
{
"exchange": "string",
"id": "string",
"clientOrderId": "string",
"baseCurrency": "string",
"quoteCurrency": "string",
"assetType": "string",
"orderSide": "string",
"orderType": "string",
"creationTime": "string",
"updateTime": "string",
"status": "string",
"price": 0,
"amount": 0,
"openVolume": 0,
"fee": 0,
"cost": 0,
"trades": [
{
"creationTime": "string",
"id": "string",
"price": 0,
"amount": 0,
"exchange": "string",
"assetType": "string",
"orderSide": "string",
"fee": 0,
"total": 0
}
]
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetOrdersResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetOrder
Code samples
# You can also use wget
curl -X POST /v1/getorder \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/getorder HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"orderId": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"asset": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/getorder',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/getorder',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/getorder', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/getorder', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getorder");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/getorder", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/getorder
Body parameter
{
"exchange": "string",
"orderId": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"asset": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcGetOrderRequest | true | none |
Example responses
200 Response
{
"exchange": "string",
"id": "string",
"clientOrderId": "string",
"baseCurrency": "string",
"quoteCurrency": "string",
"assetType": "string",
"orderSide": "string",
"orderType": "string",
"creationTime": "string",
"updateTime": "string",
"status": "string",
"price": 0,
"amount": 0,
"openVolume": 0,
"fee": 0,
"cost": 0,
"trades": [
{
"creationTime": "string",
"id": "string",
"price": 0,
"amount": 0,
"exchange": "string",
"assetType": "string",
"orderSide": "string",
"fee": 0,
"total": 0
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcOrderDetails |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetOrderbook
Code samples
# You can also use wget
curl -X POST /v1/getorderbook \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/getorderbook HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/getorderbook',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/getorderbook',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/getorderbook', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/getorderbook', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getorderbook");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/getorderbook", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/getorderbook
Body parameter
{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcGetOrderbookRequest | true | none |
Example responses
200 Response
{
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"currencyPair": "string",
"bids": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"asks": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"lastUpdated": "string",
"assetType": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcOrderbookResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetOrderbooks
Code samples
# You can also use wget
curl -X GET /v1/getorderbooks \
-H 'Accept: application/json'
GET /v1/getorderbooks HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getorderbooks',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getorderbooks',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getorderbooks', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getorderbooks', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getorderbooks");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getorderbooks", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getorderbooks
Example responses
200 Response
{
"orderbooks": [
{
"exchange": "string",
"orderbooks": [
{
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"currencyPair": "string",
"bids": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"asks": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"lastUpdated": "string",
"assetType": "string"
}
]
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetOrderbooksResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetOrderbookStream
Code samples
# You can also use wget
curl -X GET /v1/getorderbookstream \
-H 'Accept: application/json'
GET /v1/getorderbookstream HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getorderbookstream',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getorderbookstream',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getorderbookstream', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getorderbookstream', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getorderbookstream");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getorderbookstream", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getorderbookstream
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
pair.delimiter | query | string | false | none |
pair.base | query | string | false | none |
pair.quote | query | string | false | none |
assetType | query | string | false | none |
Example responses
200 Response
{
"result": {
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"currencyPair": "string",
"bids": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"asks": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"lastUpdated": "string",
"assetType": "string"
},
"error": {
"code": 0,
"message": "string",
"details": [
{
"typeUrl": "string",
"value": "string"
}
]
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response.(streaming responses) | Inline |
default | Default | An unexpected error response. | rpcStatus |
Response Schema
Status Code 200
Stream result of gctrpcOrderbookResponse
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» result | gctrpcOrderbookResponse | false | none | none |
»» pair | gctrpcCurrencyPair | false | none | none |
»»» delimiter | string | false | none | none |
»»» base | string | false | none | none |
»»» quote | string | false | none | none |
»» currencyPair | string | false | none | none |
»» bids | [gctrpcOrderbookItem] | false | none | none |
»»» amount | number(double) | false | none | none |
»»» price | number(double) | false | none | none |
»»» id | string(int64) | false | none | none |
»» asks | [gctrpcOrderbookItem] | false | none | none |
»» lastUpdated | string(int64) | false | none | none |
»» assetType | string | false | none | none |
» error | rpcStatus | false | none | none |
»» code | integer(int32) | false | none | none |
»» message | string | false | none | none |
»» details | [protobufAny] | false | none | none |
»»» typeUrl | string | false | none | none |
»»» value | string(byte) | false | none | none |
GoCryptoTrader_GetOrders
Code samples
# You can also use wget
curl -X POST /v1/getorders \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/getorders HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"assetType": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"startDate": "string",
"endDate": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/getorders',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/getorders',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/getorders', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/getorders', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getorders");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/getorders", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/getorders
Body parameter
{
"exchange": "string",
"assetType": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"startDate": "string",
"endDate": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcGetOrdersRequest | true | none |
Example responses
200 Response
{
"orders": [
{
"exchange": "string",
"id": "string",
"clientOrderId": "string",
"baseCurrency": "string",
"quoteCurrency": "string",
"assetType": "string",
"orderSide": "string",
"orderType": "string",
"creationTime": "string",
"updateTime": "string",
"status": "string",
"price": 0,
"amount": 0,
"openVolume": 0,
"fee": 0,
"cost": 0,
"trades": [
{
"creationTime": "string",
"id": "string",
"price": 0,
"amount": 0,
"exchange": "string",
"assetType": "string",
"orderSide": "string",
"fee": 0,
"total": 0
}
]
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetOrdersResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetPortfolio
Code samples
# You can also use wget
curl -X GET /v1/getportfolio \
-H 'Accept: application/json'
GET /v1/getportfolio HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getportfolio',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getportfolio',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getportfolio', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getportfolio', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getportfolio");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getportfolio", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getportfolio
Example responses
200 Response
{
"portfolio": [
{
"address": "string",
"coinType": "string",
"description": "string",
"balance": 0
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetPortfolioResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetPortfolioSummary
Code samples
# You can also use wget
curl -X GET /v1/getportfoliosummary \
-H 'Accept: application/json'
GET /v1/getportfoliosummary HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getportfoliosummary',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getportfoliosummary',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getportfoliosummary', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getportfoliosummary', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getportfoliosummary");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getportfoliosummary", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getportfoliosummary
Example responses
200 Response
{
"coinTotals": [
{
"coin": "string",
"balance": 0,
"address": "string",
"percentage": 0
}
],
"coinsOffline": [
{
"coin": "string",
"balance": 0,
"address": "string",
"percentage": 0
}
],
"coinsOfflineSummary": {
"property1": {
"addresses": [
{
"address": "string",
"balance": 0,
"percentage": 0
}
]
},
"property2": {
"addresses": [
{
"address": "string",
"balance": 0,
"percentage": 0
}
]
}
},
"coinsOnline": [
{
"coin": "string",
"balance": 0,
"address": "string",
"percentage": 0
}
],
"coinsOnlineSummary": {
"property1": {
"coins": {
"property1": {
"balance": 0,
"percentage": 0
},
"property2": {
"balance": 0,
"percentage": 0
}
}
},
"property2": {
"coins": {
"property1": {
"balance": 0,
"percentage": 0
},
"property2": {
"balance": 0,
"percentage": 0
}
}
}
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetPortfolioSummaryResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetRPCEndpoints
Code samples
# You can also use wget
curl -X GET /v1/getrpcendpoints \
-H 'Accept: application/json'
GET /v1/getrpcendpoints HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getrpcendpoints',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getrpcendpoints',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getrpcendpoints', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getrpcendpoints', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getrpcendpoints");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getrpcendpoints", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getrpcendpoints
Example responses
200 Response
{
"endpoints": {
"property1": {
"started": true,
"listenAddress": "string"
},
"property2": {
"started": true,
"listenAddress": "string"
}
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetRPCEndpointsResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetSavedTrades
Code samples
# You can also use wget
curl -X GET /v1/getsavedtrades \
-H 'Accept: application/json'
GET /v1/getsavedtrades HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getsavedtrades',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getsavedtrades',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getsavedtrades', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getsavedtrades', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getsavedtrades");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getsavedtrades", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getsavedtrades
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
pair.delimiter | query | string | false | none |
pair.base | query | string | false | none |
pair.quote | query | string | false | none |
assetType | query | string | false | none |
start | query | string | false | none |
end | query | string | false | none |
Example responses
200 Response
{
"exchangeName": "string",
"asset": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"trades": [
{
"price": 0,
"amount": 0,
"side": "string",
"timestamp": "string",
"tradeId": "string"
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcSavedTradesResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetSubsystems
Code samples
# You can also use wget
curl -X GET /v1/getsubsystems \
-H 'Accept: application/json'
GET /v1/getsubsystems HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/getsubsystems',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/getsubsystems',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/getsubsystems', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/getsubsystems', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getsubsystems");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/getsubsystems", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/getsubsystems
Example responses
200 Response
{
"subsystemsStatus": {
"property1": true,
"property2": true
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetSusbsytemsResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetTicker
Code samples
# You can also use wget
curl -X POST /v1/getticker \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/getticker HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/getticker',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/getticker',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/getticker', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/getticker', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/getticker");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/getticker", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/getticker
Body parameter
{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcGetTickerRequest | true | none |
Example responses
200 Response
{
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"lastUpdated": "string",
"currencyPair": "string",
"last": 0,
"high": 0,
"low": 0,
"bid": 0,
"ask": 0,
"volume": 0,
"priceAth": 0
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcTickerResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetTickers
Code samples
# You can also use wget
curl -X GET /v1/gettickers \
-H 'Accept: application/json'
GET /v1/gettickers HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/gettickers',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/gettickers',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/gettickers', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/gettickers', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/gettickers");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/gettickers", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/gettickers
Example responses
200 Response
{
"tickers": [
{
"exchange": "string",
"tickers": [
{
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"lastUpdated": "string",
"currencyPair": "string",
"last": 0,
"high": 0,
"low": 0,
"bid": 0,
"ask": 0,
"volume": 0,
"priceAth": 0
}
]
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetTickersResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_GetTickerStream
Code samples
# You can also use wget
curl -X GET /v1/gettickerstream \
-H 'Accept: application/json'
GET /v1/gettickerstream HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/gettickerstream',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/gettickerstream',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/gettickerstream', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/gettickerstream', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/gettickerstream");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/gettickerstream", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/gettickerstream
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
pair.delimiter | query | string | false | none |
pair.base | query | string | false | none |
pair.quote | query | string | false | none |
assetType | query | string | false | none |
Example responses
200 Response
{
"result": {
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"lastUpdated": "string",
"currencyPair": "string",
"last": 0,
"high": 0,
"low": 0,
"bid": 0,
"ask": 0,
"volume": 0,
"priceAth": 0
},
"error": {
"code": 0,
"message": "string",
"details": [
{
"typeUrl": "string",
"value": "string"
}
]
}
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response.(streaming responses) | Inline |
default | Default | An unexpected error response. | rpcStatus |
Response Schema
Status Code 200
Stream result of gctrpcTickerResponse
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» result | gctrpcTickerResponse | false | none | none |
»» pair | gctrpcCurrencyPair | false | none | none |
»»» delimiter | string | false | none | none |
»»» base | string | false | none | none |
»»» quote | string | false | none | none |
»» lastUpdated | string(int64) | false | none | none |
»» currencyPair | string | false | none | none |
»» last | number(double) | false | none | none |
»» high | number(double) | false | none | none |
»» low | number(double) | false | none | none |
»» bid | number(double) | false | none | none |
»» ask | number(double) | false | none | none |
»» volume | number(double) | false | none | none |
»» priceAth | number(double) | false | none | none |
» error | rpcStatus | false | none | none |
»» code | integer(int32) | false | none | none |
»» message | string | false | none | none |
»» details | [protobufAny] | false | none | none |
»»» typeUrl | string | false | none | none |
»»» value | string(byte) | false | none | none |
GoCryptoTrader_ModifyOrder
Code samples
# You can also use wget
curl -X GET /v1/modifyorder \
-H 'Accept: application/json'
GET /v1/modifyorder HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/modifyorder',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/modifyorder',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/modifyorder', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/modifyorder', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/modifyorder");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/modifyorder", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/modifyorder
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
orderId | query | string | false | none |
pair.delimiter | query | string | false | none |
pair.base | query | string | false | none |
pair.quote | query | string | false | none |
asset | query | string | false | none |
amount | query | number(double) | false | none |
price | query | number(double) | false | none |
Example responses
200 Response
{
"modifiedOrderId": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcModifyOrderResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_RemoveEvent
Code samples
# You can also use wget
curl -X POST /v1/removeevent \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/removeevent HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"id": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/removeevent',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/removeevent',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/removeevent', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/removeevent', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/removeevent");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/removeevent", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/removeevent
Body parameter
{
"id": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcRemoveEventRequest | true | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_RemovePortfolioAddress
Code samples
# You can also use wget
curl -X POST /v1/removeportfolioaddress \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/removeportfolioaddress HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"address": "string",
"coinType": "string",
"description": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/removeportfolioaddress',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/removeportfolioaddress',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/removeportfolioaddress', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/removeportfolioaddress', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/removeportfolioaddress");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/removeportfolioaddress", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/removeportfolioaddress
Body parameter
{
"address": "string",
"coinType": "string",
"description": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcRemovePortfolioAddressRequest | true | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_SetAllExchangePairs
Code samples
# You can also use wget
curl -X GET /v1/setallexchangepairs \
-H 'Accept: application/json'
GET /v1/setallexchangepairs HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/setallexchangepairs',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/setallexchangepairs',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/setallexchangepairs', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/setallexchangepairs', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/setallexchangepairs");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/setallexchangepairs", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/setallexchangepairs
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
enable | query | boolean | false | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_SetDataHistoryJobStatus
Code samples
# You can also use wget
curl -X POST /v1/setdatahistoryjobstatus \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/setdatahistoryjobstatus HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"id": "string",
"nickname": "string",
"status": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/setdatahistoryjobstatus',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/setdatahistoryjobstatus',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/setdatahistoryjobstatus', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/setdatahistoryjobstatus', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/setdatahistoryjobstatus");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/setdatahistoryjobstatus", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/setdatahistoryjobstatus
Body parameter
{
"id": "string",
"nickname": "string",
"status": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcSetDataHistoryJobStatusRequest | true | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_SetExchangeAsset
Code samples
# You can also use wget
curl -X GET /v1/setexchangeasset \
-H 'Accept: application/json'
GET /v1/setexchangeasset HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/setexchangeasset',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/setexchangeasset',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/setexchangeasset', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/setexchangeasset', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/setexchangeasset");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/setexchangeasset", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/setexchangeasset
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
asset | query | string | false | none |
enable | query | boolean | false | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_SetExchangePair
Code samples
# You can also use wget
curl -X POST /v1/setexchangepair \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/setexchangepair HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"assetType": "string",
"pairs": [
{
"delimiter": "string",
"base": "string",
"quote": "string"
}
],
"enable": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/setexchangepair',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/setexchangepair',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/setexchangepair', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/setexchangepair', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/setexchangepair");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/setexchangepair", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/setexchangepair
Body parameter
{
"exchange": "string",
"assetType": "string",
"pairs": [
{
"delimiter": "string",
"base": "string",
"quote": "string"
}
],
"enable": true
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcSetExchangePairRequest | true | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_SetExchangeTradeProcessing
Code samples
# You can also use wget
curl -X GET /v1/setexchangetradeprocessing \
-H 'Accept: application/json'
GET /v1/setexchangetradeprocessing HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/setexchangetradeprocessing',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/setexchangetradeprocessing',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/setexchangetradeprocessing', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/setexchangetradeprocessing', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/setexchangetradeprocessing");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/setexchangetradeprocessing", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/setexchangetradeprocessing
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
Exchange | query | string | false | none |
Status | query | boolean | false | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_SetLoggerDetails
Code samples
# You can also use wget
curl -X POST /v1/setloggerdetails \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/setloggerdetails HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"logger": "string",
"level": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/setloggerdetails',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/setloggerdetails',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/setloggerdetails', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/setloggerdetails', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/setloggerdetails");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/setloggerdetails", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/setloggerdetails
Body parameter
{
"logger": "string",
"level": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcSetLoggerDetailsRequest | true | none |
Example responses
200 Response
{
"info": true,
"debug": true,
"warn": true,
"error": true
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetLoggerDetailsResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_SimulateOrder
Code samples
# You can also use wget
curl -X POST /v1/simulateorder \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/simulateorder HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"amount": 0,
"side": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/simulateorder',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/simulateorder',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/simulateorder', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/simulateorder', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/simulateorder");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/simulateorder", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/simulateorder
Body parameter
{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"amount": 0,
"side": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcSimulateOrderRequest | true | none |
Example responses
200 Response
{
"orders": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"amount": 0,
"minimumPrice": 0,
"maximumPrice": 0,
"percentageGainLoss": 0,
"status": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcSimulateOrderResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_SubmitOrder
Code samples
# You can also use wget
curl -X POST /v1/submitorder \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/submitorder HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"side": "string",
"orderType": "string",
"amount": 0,
"price": 0,
"clientId": "string",
"assetType": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/submitorder',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/submitorder',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/submitorder', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/submitorder', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/submitorder");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/submitorder", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/submitorder
Body parameter
{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"side": "string",
"orderType": "string",
"amount": 0,
"price": 0,
"clientId": "string",
"assetType": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcSubmitOrderRequest | true | none |
Example responses
200 Response
{
"orderPlaced": true,
"orderId": "string",
"trades": [
{
"amount": 0,
"price": 0,
"fee": 0,
"feeAsset": "string"
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcSubmitOrderResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_UpdateAccountInfo
Code samples
# You can also use wget
curl -X GET /v1/updateaccountinfo \
-H 'Accept: application/json'
GET /v1/updateaccountinfo HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/updateaccountinfo',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/updateaccountinfo',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/updateaccountinfo', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/updateaccountinfo', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/updateaccountinfo");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/updateaccountinfo", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/updateaccountinfo
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
assetType | query | string | false | none |
Example responses
200 Response
{
"exchange": "string",
"accounts": [
{
"id": "string",
"currencies": [
{
"currency": "string",
"totalValue": 0,
"hold": 0
}
]
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGetAccountInfoResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_UpdateDataHistoryJobPrerequisite
Code samples
# You can also use wget
curl -X POST /v1/updatedatahistoryjobprerequisite \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/updatedatahistoryjobprerequisite HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"nickname": "string",
"prerequisiteJobNickname": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/updatedatahistoryjobprerequisite',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/updatedatahistoryjobprerequisite',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/updatedatahistoryjobprerequisite', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/updatedatahistoryjobprerequisite', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/updatedatahistoryjobprerequisite");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/updatedatahistoryjobprerequisite", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/updatedatahistoryjobprerequisite
Body parameter
{
"nickname": "string",
"prerequisiteJobNickname": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcUpdateDataHistoryJobPrerequisiteRequest | true | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_UpdateExchangeSupportedPairs
Code samples
# You can also use wget
curl -X GET /v1/updateexchangesupportedpairs \
-H 'Accept: application/json'
GET /v1/updateexchangesupportedpairs HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/updateexchangesupportedpairs',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/updateexchangesupportedpairs',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/updateexchangesupportedpairs', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/updateexchangesupportedpairs', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/updateexchangesupportedpairs");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/updateexchangesupportedpairs", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/updateexchangesupportedpairs
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_UpsertDataHistoryJob
Code samples
# You can also use wget
curl -X POST /v1/upsertdatahistoryjob \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/upsertdatahistoryjob HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"nickname": "string",
"exchange": "string",
"asset": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"startDate": "string",
"endDate": "string",
"interval": "string",
"requestSizeLimit": "string",
"dataType": "string",
"maxRetryAttempts": "string",
"batchSize": "string",
"insertOnly": true,
"conversionInterval": "string",
"overwriteExistingData": true,
"prerequisiteJobNickname": "string",
"decimalPlaceComparison": "string",
"secondaryExchangeName": "string",
"issueTolerancePercentage": 0,
"replaceOnIssue": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/upsertdatahistoryjob',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/upsertdatahistoryjob',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/upsertdatahistoryjob', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/upsertdatahistoryjob', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/upsertdatahistoryjob");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/upsertdatahistoryjob", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/upsertdatahistoryjob
Body parameter
{
"nickname": "string",
"exchange": "string",
"asset": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"startDate": "string",
"endDate": "string",
"interval": "string",
"requestSizeLimit": "string",
"dataType": "string",
"maxRetryAttempts": "string",
"batchSize": "string",
"insertOnly": true,
"conversionInterval": "string",
"overwriteExistingData": true,
"prerequisiteJobNickname": "string",
"decimalPlaceComparison": "string",
"secondaryExchangeName": "string",
"issueTolerancePercentage": 0,
"replaceOnIssue": true
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcUpsertDataHistoryJobRequest | true | none |
Example responses
200 Response
{
"message": "string",
"jobId": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcUpsertDataHistoryJobResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_WebsocketGetInfo
Code samples
# You can also use wget
curl -X GET /v1/websocketgetinfo \
-H 'Accept: application/json'
GET /v1/websocketgetinfo HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/websocketgetinfo',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/websocketgetinfo',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/websocketgetinfo', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/websocketgetinfo', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/websocketgetinfo");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/websocketgetinfo", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/websocketgetinfo
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
Example responses
200 Response
{
"exchange": "string",
"supported": true,
"enabled": true,
"authenticatedSupported": true,
"authenticated": true,
"runningUrl": "string",
"proxyAddress": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcWebsocketGetInfoResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_WebsocketGetSubscriptions
Code samples
# You can also use wget
curl -X GET /v1/websocketgetsubscriptions \
-H 'Accept: application/json'
GET /v1/websocketgetsubscriptions HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/websocketgetsubscriptions',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/websocketgetsubscriptions',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/websocketgetsubscriptions', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/websocketgetsubscriptions', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/websocketgetsubscriptions");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/websocketgetsubscriptions", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/websocketgetsubscriptions
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
Example responses
200 Response
{
"exchange": "string",
"subscriptions": [
{
"channel": "string",
"currency": "string",
"asset": "string",
"params": "string"
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcWebsocketGetSubscriptionsResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_WebsocketSetEnabled
Code samples
# You can also use wget
curl -X GET /v1/websocketsetenabled \
-H 'Accept: application/json'
GET /v1/websocketsetenabled HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/websocketsetenabled',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/websocketsetenabled',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/websocketsetenabled', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/websocketsetenabled', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/websocketsetenabled");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/websocketsetenabled", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/websocketsetenabled
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
enable | query | boolean | false | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_WebsocketSetProxy
Code samples
# You can also use wget
curl -X GET /v1/websocketsetproxy \
-H 'Accept: application/json'
GET /v1/websocketsetproxy HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/websocketsetproxy',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/websocketsetproxy',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/websocketsetproxy', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/websocketsetproxy', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/websocketsetproxy");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/websocketsetproxy", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/websocketsetproxy
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
proxy | query | string | false | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_WebsocketSetURL
Code samples
# You can also use wget
curl -X GET /v1/websocketseturl \
-H 'Accept: application/json'
GET /v1/websocketseturl HTTP/1.1
Accept: application/json
const headers = {
'Accept':'application/json'
};
fetch('/v1/websocketseturl',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/v1/websocketseturl',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/v1/websocketseturl', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('GET','/v1/websocketseturl', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/websocketseturl");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/v1/websocketseturl", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
GET /v1/websocketseturl
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
exchange | query | string | false | none |
url | query | string | false | none |
Example responses
200 Response
{
"status": "string",
"data": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcGenericResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_WhaleBomb
Code samples
# You can also use wget
curl -X POST /v1/whalebomb \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/whalebomb HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"priceTarget": 0,
"side": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/whalebomb',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/whalebomb',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/whalebomb', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/whalebomb', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/whalebomb");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/whalebomb", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/whalebomb
Body parameter
{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"priceTarget": 0,
"side": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcWhaleBombRequest | true | none |
Example responses
200 Response
{
"orders": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"amount": 0,
"minimumPrice": 0,
"maximumPrice": 0,
"percentageGainLoss": 0,
"status": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcSimulateOrderResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_WithdrawalEventsByDate
Code samples
# You can also use wget
curl -X POST /v1/withdrawaleventbydate \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/withdrawaleventbydate HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"start": "string",
"end": "string",
"limit": 0
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/withdrawaleventbydate',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/withdrawaleventbydate',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/withdrawaleventbydate', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/withdrawaleventbydate', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/withdrawaleventbydate");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/withdrawaleventbydate", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/withdrawaleventbydate
Body parameter
{
"exchange": "string",
"start": "string",
"end": "string",
"limit": 0
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcWithdrawalEventsByDateRequest | true | none |
Example responses
200 Response
{
"event": [
{
"id": "string",
"exchange": {
"name": "string",
"id": "string",
"status": "string"
},
"request": {
"currency": "string",
"description": "string",
"amount": 0,
"type": 0,
"fiat": {
"bankName": "string",
"accountName": "string",
"accountNumber": "string",
"bsb": "string",
"swift": "string",
"iban": "string"
},
"crypto": {
"address": "string",
"addressTag": "string",
"fee": 0,
"txId": "string"
}
},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcWithdrawalEventsByExchangeResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_WithdrawalEventsByExchange
Code samples
# You can also use wget
curl -X POST /v1/withdrawaleventbyid \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/withdrawaleventbyid HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"id": "string",
"limit": 0,
"currency": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/withdrawaleventbyid',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/withdrawaleventbyid',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/withdrawaleventbyid', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/withdrawaleventbyid', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/withdrawaleventbyid");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/withdrawaleventbyid", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/withdrawaleventbyid
Body parameter
{
"exchange": "string",
"id": "string",
"limit": 0,
"currency": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcWithdrawalEventsByExchangeRequest | true | none |
Example responses
200 Response
{
"event": [
{
"id": "string",
"exchange": {
"name": "string",
"id": "string",
"status": "string"
},
"request": {
"currency": "string",
"description": "string",
"amount": 0,
"type": 0,
"fiat": {
"bankName": "string",
"accountName": "string",
"accountNumber": "string",
"bsb": "string",
"swift": "string",
"iban": "string"
},
"crypto": {
"address": "string",
"addressTag": "string",
"fee": 0,
"txId": "string"
}
},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcWithdrawalEventsByExchangeResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_WithdrawFiatFunds
Code samples
# You can also use wget
curl -X POST /v1/withdrawfiatfunds \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/withdrawfiatfunds HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"currency": "string",
"amount": 0,
"description": "string",
"bankAccountId": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/withdrawfiatfunds',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/withdrawfiatfunds',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/withdrawfiatfunds', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/withdrawfiatfunds', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/withdrawfiatfunds");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/withdrawfiatfunds", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/withdrawfiatfunds
Body parameter
{
"exchange": "string",
"currency": "string",
"amount": 0,
"description": "string",
"bankAccountId": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcWithdrawFiatRequest | true | none |
Example responses
200 Response
{
"id": "string",
"status": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcWithdrawResponse |
default | Default | An unexpected error response. | rpcStatus |
GoCryptoTrader_WithdrawCryptocurrencyFunds
Code samples
# You can also use wget
curl -X POST /v1/withdrawithdrawcryptofundswfiatfunds \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
POST /v1/withdrawithdrawcryptofundswfiatfunds HTTP/1.1
Content-Type: application/json
Accept: application/json
const inputBody = '{
"exchange": "string",
"address": "string",
"addressTag": "string",
"currency": "string",
"amount": 0,
"fee": 0,
"description": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/v1/withdrawithdrawcryptofundswfiatfunds',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}
result = RestClient.post '/v1/withdrawithdrawcryptofundswfiatfunds',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
r = requests.post('/v1/withdrawithdrawcryptofundswfiatfunds', headers = headers)
print(r.json())
<?php
require 'vendor/autoload.php';
$headers = array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
);
$client = new \GuzzleHttp\Client();
// Define array of request body.
$request_body = array();
try {
$response = $client->request('POST','/v1/withdrawithdrawcryptofundswfiatfunds', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
URL obj = new URL("/v1/withdrawithdrawcryptofundswfiatfunds");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/v1/withdrawithdrawcryptofundswfiatfunds", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
POST /v1/withdrawithdrawcryptofundswfiatfunds
Body parameter
{
"exchange": "string",
"address": "string",
"addressTag": "string",
"currency": "string",
"amount": 0,
"fee": 0,
"description": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | gctrpcWithdrawCryptoRequest | true | none |
Example responses
200 Response
{
"id": "string",
"status": "string"
}
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response. | gctrpcWithdrawResponse |
default | Default | An unexpected error response. | rpcStatus |
Schemas
gctrpcAccount
{
"id": "string",
"currencies": [
{
"currency": "string",
"totalValue": 0,
"hold": 0
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | string | false | none | none |
currencies | [gctrpcAccountCurrencyInfo] | false | none | none |
gctrpcAccountCurrencyInfo
{
"currency": "string",
"totalValue": 0,
"hold": 0
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
currency | string | false | none | none |
totalValue | number(double) | false | none | none |
hold | number(double) | false | none | none |
gctrpcAddEventRequest
{
"exchange": "string",
"item": "string",
"conditionParams": {
"condition": "string",
"price": 0,
"checkBids": true,
"checkAsks": true,
"orderbookAmount": 0
},
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string",
"action": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
item | string | false | none | none |
conditionParams | gctrpcConditionParams | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
assetType | string | false | none | none |
action | string | false | none | none |
gctrpcAddEventResponse
{
"id": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | string(int64) | false | none | none |
gctrpcAddPortfolioAddressRequest
{
"address": "string",
"coinType": "string",
"description": "string",
"balance": 0,
"supportedExchanges": "string",
"coldStorage": true
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
address | string | false | none | none |
coinType | string | false | none | none |
description | string | false | none | none |
balance | number(double) | false | none | none |
supportedExchanges | string | false | none | none |
coldStorage | boolean | false | none | none |
gctrpcAuditEvent
{
"type": "string",
"identifier": "string",
"message": "string",
"timestamp": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
type | string | false | none | none |
identifier | string | false | none | none |
message | string | false | none | none |
timestamp | string | false | none | none |
gctrpcCancelAllOrdersRequest
{
"exchange": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
gctrpcCancelAllOrdersResponse
{
"orders": [
{
"exchange": "string",
"orderStatus": {
"property1": "string",
"property2": "string"
}
}
],
"count": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
orders | [gctrpcCancelAllOrdersResponseOrders] | false | none | none |
count | string(int64) | false | none | none |
gctrpcCancelAllOrdersResponseOrders
{
"exchange": "string",
"orderStatus": {
"property1": "string",
"property2": "string"
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
orderStatus | object | false | none | none |
» additionalProperties | string | false | none | none |
gctrpcCancelBatchOrdersRequest
{
"exchange": "string",
"accountId": "string",
"ordersId": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string",
"walletAddress": "string",
"side": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
accountId | string | false | none | none |
ordersId | string | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
assetType | string | false | none | none |
walletAddress | string | false | none | none |
side | string | false | none | none |
gctrpcCancelBatchOrdersResponse
{
"orders": [
{
"orderStatus": {
"property1": "string",
"property2": "string"
}
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
orders | [gctrpcCancelBatchOrdersResponseOrders] | false | none | none |
gctrpcCancelBatchOrdersResponseOrders
{
"orderStatus": {
"property1": "string",
"property2": "string"
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
orderStatus | object | false | none | none |
» additionalProperties | string | false | none | none |
gctrpcCancelOrderRequest
{
"exchange": "string",
"accountId": "string",
"orderId": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string",
"walletAddress": "string",
"side": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
accountId | string | false | none | none |
orderId | string | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
assetType | string | false | none | none |
walletAddress | string | false | none | none |
side | string | false | none | none |
gctrpcCandle
{
"time": "string",
"low": 0,
"high": 0,
"open": 0,
"close": 0,
"volume": 0
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
time | string | false | none | none |
low | number(double) | false | none | none |
high | number(double) | false | none | none |
open | number(double) | false | none | none |
close | number(double) | false | none | none |
volume | number(double) | false | none | none |
gctrpcCoin
{
"coin": "string",
"balance": 0,
"address": "string",
"percentage": 0
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
coin | string | false | none | none |
balance | number(double) | false | none | none |
address | string | false | none | none |
percentage | number(double) | false | none | none |
gctrpcCommunicationRelayer
{
"enabled": true,
"connected": true
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
enabled | boolean | false | none | none |
connected | boolean | false | none | none |
gctrpcConditionParams
{
"condition": "string",
"price": 0,
"checkBids": true,
"checkAsks": true,
"orderbookAmount": 0
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
condition | string | false | none | none |
price | number(double) | false | none | none |
checkBids | boolean | false | none | none |
checkAsks | boolean | false | none | none |
orderbookAmount | number(double) | false | none | none |
gctrpcCryptoWithdrawalEvent
{
"address": "string",
"addressTag": "string",
"fee": 0,
"txId": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
address | string | false | none | none |
addressTag | string | false | none | none |
fee | number(double) | false | none | none |
txId | string | false | none | none |
gctrpcCurrencyPair
{
"delimiter": "string",
"base": "string",
"quote": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
delimiter | string | false | none | none |
base | string | false | none | none |
quote | string | false | none | none |
gctrpcDataHistoryJob
{
"id": "string",
"nickname": "string",
"exchange": "string",
"asset": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"startDate": "string",
"endDate": "string",
"interval": "string",
"requestSizeLimit": "string",
"maxRetryAttempts": "string",
"batchSize": "string",
"status": "string",
"dataType": "string",
"conversionInterval": "string",
"overwriteExistingData": true,
"prerequisiteJobNickname": "string",
"decimalPlaceComparison": "string",
"secondaryExchangeName": "string",
"issueTolerancePercentage": 0,
"replaceOnIssue": true,
"jobResults": [
{
"startDate": "string",
"endDate": "string",
"hasData": true,
"message": "string",
"runDate": "string"
}
],
"resultSummaries": [
"string"
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | string | false | none | none |
nickname | string | false | none | none |
exchange | string | false | none | none |
asset | string | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
startDate | string | false | none | none |
endDate | string | false | none | none |
interval | string(int64) | false | none | none |
requestSizeLimit | string(int64) | false | none | none |
maxRetryAttempts | string(int64) | false | none | none |
batchSize | string(int64) | false | none | none |
status | string | false | none | none |
dataType | string | false | none | none |
conversionInterval | string(int64) | false | none | none |
overwriteExistingData | boolean | false | none | none |
prerequisiteJobNickname | string | false | none | none |
decimalPlaceComparison | string(int64) | false | none | none |
secondaryExchangeName | string | false | none | none |
issueTolerancePercentage | number(double) | false | none | none |
replaceOnIssue | boolean | false | none | none |
jobResults | [gctrpcDataHistoryJobResult] | false | none | none |
resultSummaries | [string] | false | none | none |
gctrpcDataHistoryJobResult
{
"startDate": "string",
"endDate": "string",
"hasData": true,
"message": "string",
"runDate": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
startDate | string | false | none | none |
endDate | string | false | none | none |
hasData | boolean | false | none | none |
message | string | false | none | none |
runDate | string | false | none | none |
gctrpcDataHistoryJobs
{
"results": [
{
"id": "string",
"nickname": "string",
"exchange": "string",
"asset": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"startDate": "string",
"endDate": "string",
"interval": "string",
"requestSizeLimit": "string",
"maxRetryAttempts": "string",
"batchSize": "string",
"status": "string",
"dataType": "string",
"conversionInterval": "string",
"overwriteExistingData": true,
"prerequisiteJobNickname": "string",
"decimalPlaceComparison": "string",
"secondaryExchangeName": "string",
"issueTolerancePercentage": 0,
"replaceOnIssue": true,
"jobResults": [
{
"startDate": "string",
"endDate": "string",
"hasData": true,
"message": "string",
"runDate": "string"
}
],
"resultSummaries": [
"string"
]
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
results | [gctrpcDataHistoryJob] | false | none | none |
gctrpcFiatWithdrawalEvent
{
"bankName": "string",
"accountName": "string",
"accountNumber": "string",
"bsb": "string",
"swift": "string",
"iban": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
bankName | string | false | none | none |
accountName | string | false | none | none |
accountNumber | string | false | none | none |
bsb | string | false | none | none |
swift | string | false | none | none |
iban | string | false | none | none |
gctrpcFindMissingIntervalsResponse
{
"exchangeName": "string",
"assetType": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"missingPeriods": [
"string"
],
"status": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchangeName | string | false | none | none |
assetType | string | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
missingPeriods | [string] | false | none | none |
status | string | false | none | none |
gctrpcForexProvider
{
"name": "string",
"enabled": true,
"verbose": true,
"restPollingDelay": "string",
"apiKey": "string",
"apiKeyLevel": "string",
"primaryProvider": true
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
name | string | false | none | none |
enabled | boolean | false | none | none |
verbose | boolean | false | none | none |
restPollingDelay | string | false | none | none |
apiKey | string | false | none | none |
apiKeyLevel | string(int64) | false | none | none |
primaryProvider | boolean | false | none | none |
gctrpcForexRatesConversion
{
"from": "string",
"to": "string",
"rate": 0,
"inverseRate": 0
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
from | string | false | none | none |
to | string | false | none | none |
rate | number(double) | false | none | none |
inverseRate | number(double) | false | none | none |
gctrpcGCTScript
{
"UUID": "string",
"name": "string",
"path": "string",
"nextRun": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
UUID | string | false | none | none |
name | string | false | none | none |
path | string | false | none | none |
nextRun | string | false | none | none |
gctrpcGCTScriptAutoLoadRequest
{
"script": "string",
"status": true
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
script | string | false | none | none |
status | boolean | false | none | none |
gctrpcGCTScriptListAllRequest
{}
Properties
None
gctrpcGCTScriptQueryResponse
{
"status": "string",
"script": {
"UUID": "string",
"name": "string",
"path": "string",
"nextRun": "string"
},
"data": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
status | string | false | none | none |
script | gctrpcGCTScript | false | none | none |
data | string | false | none | none |
gctrpcGCTScriptReadScriptRequest
{
"script": {
"UUID": "string",
"name": "string",
"path": "string",
"nextRun": "string"
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
script | gctrpcGCTScript | false | none | none |
gctrpcGCTScriptStatusResponse
{
"status": "string",
"scripts": [
{
"UUID": "string",
"name": "string",
"path": "string",
"nextRun": "string"
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
status | string | false | none | none |
scripts | [gctrpcGCTScript] | false | none | none |
gctrpcGCTScriptStopAllRequest
{}
Properties
None
gctrpcGCTScriptStopRequest
{
"script": {
"UUID": "string",
"name": "string",
"path": "string",
"nextRun": "string"
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
script | gctrpcGCTScript | false | none | none |
gctrpcGCTScriptUploadRequest
{
"scriptName": "string",
"scriptData": "string",
"data": "string",
"archived": true,
"overwrite": true
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
scriptName | string | false | none | none |
scriptData | string | false | none | none |
data | string(byte) | false | none | none |
archived | boolean | false | none | none |
overwrite | boolean | false | none | none |
gctrpcGenericExchangeNameRequest
{
"exchange": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
gctrpcGenericResponse
{
"status": "string",
"data": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
status | string | false | none | none |
data | string | false | none | none |
gctrpcGetAccountInfoResponse
{
"exchange": "string",
"accounts": [
{
"id": "string",
"currencies": [
{
"currency": "string",
"totalValue": 0,
"hold": 0
}
]
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
accounts | [gctrpcAccount] | false | none | none |
gctrpcGetAuditEventResponse
{
"events": [
{
"type": "string",
"identifier": "string",
"message": "string",
"timestamp": "string"
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
events | [gctrpcAuditEvent] | false | none | none |
gctrpcGetCommunicationRelayersResponse
{
"communicationRelayers": {
"property1": {
"enabled": true,
"connected": true
},
"property2": {
"enabled": true,
"connected": true
}
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
communicationRelayers | object | false | none | none |
» additionalProperties | gctrpcCommunicationRelayer | false | none | none |
gctrpcGetConfigResponse
{
"data": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
data | string(byte) | false | none | none |
gctrpcGetCryptocurrencyDepositAddressRequest
{
"exchange": "string",
"cryptocurrency": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
cryptocurrency | string | false | none | none |
gctrpcGetCryptocurrencyDepositAddressResponse
{
"address": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
address | string | false | none | none |
gctrpcGetCryptocurrencyDepositAddressesRequest
{
"exchange": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
gctrpcGetCryptocurrencyDepositAddressesResponse
{
"addresses": {
"property1": "string",
"property2": "string"
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
addresses | object | false | none | none |
» additionalProperties | string | false | none | none |
gctrpcGetEventsResponse
{
"id": "string",
"exchange": "string",
"item": "string",
"conditionParams": {
"condition": "string",
"price": 0,
"checkBids": true,
"checkAsks": true,
"orderbookAmount": 0
},
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"action": "string",
"executed": true
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | string(int64) | false | none | none |
exchange | string | false | none | none |
item | string | false | none | none |
conditionParams | gctrpcConditionParams | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
action | string | false | none | none |
executed | boolean | false | none | none |
gctrpcGetExchangeAssetsResponse
{
"assets": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
assets | string | false | none | none |
gctrpcGetExchangeInfoResponse
{
"name": "string",
"enabled": true,
"verbose": true,
"usingSandbox": true,
"httpTimeout": "string",
"httpUseragent": "string",
"httpProxy": "string",
"baseCurrencies": "string",
"supportedAssets": {
"property1": {
"availablePairs": "string",
"enabledPairs": "string"
},
"property2": {
"availablePairs": "string",
"enabledPairs": "string"
}
},
"authenticatedApi": true
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
name | string | false | none | none |
enabled | boolean | false | none | none |
verbose | boolean | false | none | none |
usingSandbox | boolean | false | none | none |
httpTimeout | string | false | none | none |
httpUseragent | string | false | none | none |
httpProxy | string | false | none | none |
baseCurrencies | string | false | none | none |
supportedAssets | object | false | none | none |
» additionalProperties | gctrpcPairsSupported | false | none | none |
authenticatedApi | boolean | false | none | none |
gctrpcGetExchangeOTPReponse
{
"otpCode": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
otpCode | string | false | none | none |
gctrpcGetExchangeOTPsResponse
{
"otpCodes": {
"property1": "string",
"property2": "string"
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
otpCodes | object | false | none | none |
» additionalProperties | string | false | none | none |
gctrpcGetExchangePairsRequest
{
"exchange": "string",
"asset": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
asset | string | false | none | none |
gctrpcGetExchangePairsResponse
{
"supportedAssets": {
"property1": {
"availablePairs": "string",
"enabledPairs": "string"
},
"property2": {
"availablePairs": "string",
"enabledPairs": "string"
}
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
supportedAssets | object | false | none | none |
» additionalProperties | gctrpcPairsSupported | false | none | none |
gctrpcGetExchangesResponse
{
"exchanges": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchanges | string | false | none | none |
gctrpcGetForexProvidersResponse
{
"forexProviders": [
{
"name": "string",
"enabled": true,
"verbose": true,
"restPollingDelay": "string",
"apiKey": "string",
"apiKeyLevel": "string",
"primaryProvider": true
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
forexProviders | [gctrpcForexProvider] | false | none | none |
gctrpcGetForexRatesResponse
{
"forexRates": [
{
"from": "string",
"to": "string",
"rate": 0,
"inverseRate": 0
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
forexRates | [gctrpcForexRatesConversion] | false | none | none |
gctrpcGetHistoricCandlesResponse
{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"start": "string",
"end": "string",
"interval": "string",
"candle": [
{
"time": "string",
"low": 0,
"high": 0,
"open": 0,
"close": 0,
"volume": 0
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
start | string | false | none | none |
end | string | false | none | none |
interval | string | false | none | none |
candle | [gctrpcCandle] | false | none | none |
gctrpcGetInfoResponse
{
"uptime": "string",
"availableExchanges": "string",
"enabledExchanges": "string",
"defaultForexProvider": "string",
"defaultFiatCurrency": "string",
"subsystemStatus": {
"property1": true,
"property2": true
},
"rpcEndpoints": {
"property1": {
"started": true,
"listenAddress": "string"
},
"property2": {
"started": true,
"listenAddress": "string"
}
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
uptime | string | false | none | none |
availableExchanges | string(int64) | false | none | none |
enabledExchanges | string(int64) | false | none | none |
defaultForexProvider | string | false | none | none |
defaultFiatCurrency | string | false | none | none |
subsystemStatus | object | false | none | none |
» additionalProperties | boolean | false | none | none |
rpcEndpoints | object | false | none | none |
» additionalProperties | gctrpcRPCEndpoint | false | none | none |
gctrpcGetLoggerDetailsResponse
{
"info": true,
"debug": true,
"warn": true,
"error": true
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
info | boolean | false | none | none |
debug | boolean | false | none | none |
warn | boolean | false | none | none |
error | boolean | false | none | none |
gctrpcGetOrderRequest
{
"exchange": "string",
"orderId": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"asset": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
orderId | string | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
asset | string | false | none | none |
gctrpcGetOrderbookRequest
{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
assetType | string | false | none | none |
gctrpcGetOrderbooksResponse
{
"orderbooks": [
{
"exchange": "string",
"orderbooks": [
{
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"currencyPair": "string",
"bids": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"asks": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"lastUpdated": "string",
"assetType": "string"
}
]
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
orderbooks | [gctrpcOrderbooks] | false | none | none |
gctrpcGetOrdersRequest
{
"exchange": "string",
"assetType": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"startDate": "string",
"endDate": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
assetType | string | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
startDate | string | false | none | none |
endDate | string | false | none | none |
gctrpcGetOrdersResponse
{
"orders": [
{
"exchange": "string",
"id": "string",
"clientOrderId": "string",
"baseCurrency": "string",
"quoteCurrency": "string",
"assetType": "string",
"orderSide": "string",
"orderType": "string",
"creationTime": "string",
"updateTime": "string",
"status": "string",
"price": 0,
"amount": 0,
"openVolume": 0,
"fee": 0,
"cost": 0,
"trades": [
{
"creationTime": "string",
"id": "string",
"price": 0,
"amount": 0,
"exchange": "string",
"assetType": "string",
"orderSide": "string",
"fee": 0,
"total": 0
}
]
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
orders | [gctrpcOrderDetails] | false | none | none |
gctrpcGetPortfolioResponse
{
"portfolio": [
{
"address": "string",
"coinType": "string",
"description": "string",
"balance": 0
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
portfolio | [gctrpcPortfolioAddress] | false | none | none |
gctrpcGetPortfolioSummaryResponse
{
"coinTotals": [
{
"coin": "string",
"balance": 0,
"address": "string",
"percentage": 0
}
],
"coinsOffline": [
{
"coin": "string",
"balance": 0,
"address": "string",
"percentage": 0
}
],
"coinsOfflineSummary": {
"property1": {
"addresses": [
{
"address": "string",
"balance": 0,
"percentage": 0
}
]
},
"property2": {
"addresses": [
{
"address": "string",
"balance": 0,
"percentage": 0
}
]
}
},
"coinsOnline": [
{
"coin": "string",
"balance": 0,
"address": "string",
"percentage": 0
}
],
"coinsOnlineSummary": {
"property1": {
"coins": {
"property1": {
"balance": 0,
"percentage": 0
},
"property2": {
"balance": 0,
"percentage": 0
}
}
},
"property2": {
"coins": {
"property1": {
"balance": 0,
"percentage": 0
},
"property2": {
"balance": 0,
"percentage": 0
}
}
}
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
coinTotals | [gctrpcCoin] | false | none | none |
coinsOffline | [gctrpcCoin] | false | none | none |
coinsOfflineSummary | object | false | none | none |
» additionalProperties | gctrpcOfflineCoins | false | none | none |
coinsOnline | [gctrpcCoin] | false | none | none |
coinsOnlineSummary | object | false | none | none |
» additionalProperties | gctrpcOnlineCoins | false | none | none |
gctrpcGetRPCEndpointsResponse
{
"endpoints": {
"property1": {
"started": true,
"listenAddress": "string"
},
"property2": {
"started": true,
"listenAddress": "string"
}
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
endpoints | object | false | none | none |
» additionalProperties | gctrpcRPCEndpoint | false | none | none |
gctrpcGetSusbsytemsResponse
{
"subsystemsStatus": {
"property1": true,
"property2": true
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
subsystemsStatus | object | false | none | none |
» additionalProperties | boolean | false | none | none |
gctrpcGetTickerRequest
{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"assetType": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
assetType | string | false | none | none |
gctrpcGetTickersResponse
{
"tickers": [
{
"exchange": "string",
"tickers": [
{
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"lastUpdated": "string",
"currencyPair": "string",
"last": 0,
"high": 0,
"low": 0,
"bid": 0,
"ask": 0,
"volume": 0,
"priceAth": 0
}
]
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
tickers | [gctrpcTickers] | false | none | none |
gctrpcModifyOrderResponse
{
"modifiedOrderId": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
modifiedOrderId | string | false | none | none |
gctrpcOfflineCoinSummary
{
"address": "string",
"balance": 0,
"percentage": 0
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
address | string | false | none | none |
balance | number(double) | false | none | none |
percentage | number(double) | false | none | none |
gctrpcOfflineCoins
{
"addresses": [
{
"address": "string",
"balance": 0,
"percentage": 0
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
addresses | [gctrpcOfflineCoinSummary] | false | none | none |
gctrpcOnlineCoinSummary
{
"balance": 0,
"percentage": 0
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
balance | number(double) | false | none | none |
percentage | number(double) | false | none | none |
gctrpcOnlineCoins
{
"coins": {
"property1": {
"balance": 0,
"percentage": 0
},
"property2": {
"balance": 0,
"percentage": 0
}
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
coins | object | false | none | none |
» additionalProperties | gctrpcOnlineCoinSummary | false | none | none |
gctrpcOrderDetails
{
"exchange": "string",
"id": "string",
"clientOrderId": "string",
"baseCurrency": "string",
"quoteCurrency": "string",
"assetType": "string",
"orderSide": "string",
"orderType": "string",
"creationTime": "string",
"updateTime": "string",
"status": "string",
"price": 0,
"amount": 0,
"openVolume": 0,
"fee": 0,
"cost": 0,
"trades": [
{
"creationTime": "string",
"id": "string",
"price": 0,
"amount": 0,
"exchange": "string",
"assetType": "string",
"orderSide": "string",
"fee": 0,
"total": 0
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
id | string | false | none | none |
clientOrderId | string | false | none | none |
baseCurrency | string | false | none | none |
quoteCurrency | string | false | none | none |
assetType | string | false | none | none |
orderSide | string | false | none | none |
orderType | string | false | none | none |
creationTime | string(int64) | false | none | none |
updateTime | string(int64) | false | none | none |
status | string | false | none | none |
price | number(double) | false | none | none |
amount | number(double) | false | none | none |
openVolume | number(double) | false | none | none |
fee | number(double) | false | none | none |
cost | number(double) | false | none | none |
trades | [gctrpcTradeHistory] | false | none | none |
gctrpcOrderbookItem
{
"amount": 0,
"price": 0,
"id": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
amount | number(double) | false | none | none |
price | number(double) | false | none | none |
id | string(int64) | false | none | none |
gctrpcOrderbookResponse
{
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"currencyPair": "string",
"bids": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"asks": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"lastUpdated": "string",
"assetType": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
pair | gctrpcCurrencyPair | false | none | none |
currencyPair | string | false | none | none |
bids | [gctrpcOrderbookItem] | false | none | none |
asks | [gctrpcOrderbookItem] | false | none | none |
lastUpdated | string(int64) | false | none | none |
assetType | string | false | none | none |
gctrpcOrderbooks
{
"exchange": "string",
"orderbooks": [
{
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"currencyPair": "string",
"bids": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"asks": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"lastUpdated": "string",
"assetType": "string"
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
orderbooks | [gctrpcOrderbookResponse] | false | none | none |
gctrpcPairsSupported
{
"availablePairs": "string",
"enabledPairs": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
availablePairs | string | false | none | none |
enabledPairs | string | false | none | none |
gctrpcPortfolioAddress
{
"address": "string",
"coinType": "string",
"description": "string",
"balance": 0
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
address | string | false | none | none |
coinType | string | false | none | none |
description | string | false | none | none |
balance | number(double) | false | none | none |
gctrpcRPCEndpoint
{
"started": true,
"listenAddress": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
started | boolean | false | none | none |
listenAddress | string | false | none | none |
gctrpcRemoveEventRequest
{
"id": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | string(int64) | false | none | none |
gctrpcRemovePortfolioAddressRequest
{
"address": "string",
"coinType": "string",
"description": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
address | string | false | none | none |
coinType | string | false | none | none |
description | string | false | none | none |
gctrpcSavedTrades
{
"price": 0,
"amount": 0,
"side": "string",
"timestamp": "string",
"tradeId": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
price | number(double) | false | none | none |
amount | number(double) | false | none | none |
side | string | false | none | none |
timestamp | string | false | none | none |
tradeId | string | false | none | none |
gctrpcSavedTradesResponse
{
"exchangeName": "string",
"asset": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"trades": [
{
"price": 0,
"amount": 0,
"side": "string",
"timestamp": "string",
"tradeId": "string"
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchangeName | string | false | none | none |
asset | string | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
trades | [gctrpcSavedTrades] | false | none | none |
gctrpcSetDataHistoryJobStatusRequest
{
"id": "string",
"nickname": "string",
"status": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | string | false | none | none |
nickname | string | false | none | none |
status | string(int64) | false | none | none |
gctrpcSetExchangePairRequest
{
"exchange": "string",
"assetType": "string",
"pairs": [
{
"delimiter": "string",
"base": "string",
"quote": "string"
}
],
"enable": true
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
assetType | string | false | none | none |
pairs | [gctrpcCurrencyPair] | false | none | none |
enable | boolean | false | none | none |
gctrpcSetLoggerDetailsRequest
{
"logger": "string",
"level": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
logger | string | false | none | none |
level | string | false | none | none |
gctrpcSimulateOrderRequest
{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"amount": 0,
"side": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
amount | number(double) | false | none | none |
side | string | false | none | none |
gctrpcSimulateOrderResponse
{
"orders": [
{
"amount": 0,
"price": 0,
"id": "string"
}
],
"amount": 0,
"minimumPrice": 0,
"maximumPrice": 0,
"percentageGainLoss": 0,
"status": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
orders | [gctrpcOrderbookItem] | false | none | none |
amount | number(double) | false | none | none |
minimumPrice | number(double) | false | none | none |
maximumPrice | number(double) | false | none | none |
percentageGainLoss | number(double) | false | none | none |
status | string | false | none | none |
gctrpcSubmitOrderRequest
{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"side": "string",
"orderType": "string",
"amount": 0,
"price": 0,
"clientId": "string",
"assetType": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
side | string | false | none | none |
orderType | string | false | none | none |
amount | number(double) | false | none | none |
price | number(double) | false | none | none |
clientId | string | false | none | none |
assetType | string | false | none | none |
gctrpcSubmitOrderResponse
{
"orderPlaced": true,
"orderId": "string",
"trades": [
{
"amount": 0,
"price": 0,
"fee": 0,
"feeAsset": "string"
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
orderPlaced | boolean | false | none | none |
orderId | string | false | none | none |
trades | [gctrpcTrades] | false | none | none |
gctrpcTickerResponse
{
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"lastUpdated": "string",
"currencyPair": "string",
"last": 0,
"high": 0,
"low": 0,
"bid": 0,
"ask": 0,
"volume": 0,
"priceAth": 0
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
pair | gctrpcCurrencyPair | false | none | none |
lastUpdated | string(int64) | false | none | none |
currencyPair | string | false | none | none |
last | number(double) | false | none | none |
high | number(double) | false | none | none |
low | number(double) | false | none | none |
bid | number(double) | false | none | none |
ask | number(double) | false | none | none |
volume | number(double) | false | none | none |
priceAth | number(double) | false | none | none |
gctrpcTickers
{
"exchange": "string",
"tickers": [
{
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"lastUpdated": "string",
"currencyPair": "string",
"last": 0,
"high": 0,
"low": 0,
"bid": 0,
"ask": 0,
"volume": 0,
"priceAth": 0
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
tickers | [gctrpcTickerResponse] | false | none | none |
gctrpcTradeHistory
{
"creationTime": "string",
"id": "string",
"price": 0,
"amount": 0,
"exchange": "string",
"assetType": "string",
"orderSide": "string",
"fee": 0,
"total": 0
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
creationTime | string(int64) | false | none | none |
id | string | false | none | none |
price | number(double) | false | none | none |
amount | number(double) | false | none | none |
exchange | string | false | none | none |
assetType | string | false | none | none |
orderSide | string | false | none | none |
fee | number(double) | false | none | none |
total | number(double) | false | none | none |
gctrpcTrades
{
"amount": 0,
"price": 0,
"fee": 0,
"feeAsset": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
amount | number(double) | false | none | none |
price | number(double) | false | none | none |
fee | number(double) | false | none | none |
feeAsset | string | false | none | none |
gctrpcUpdateDataHistoryJobPrerequisiteRequest
{
"nickname": "string",
"prerequisiteJobNickname": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
nickname | string | false | none | none |
prerequisiteJobNickname | string | false | none | none |
gctrpcUpsertDataHistoryJobRequest
{
"nickname": "string",
"exchange": "string",
"asset": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"startDate": "string",
"endDate": "string",
"interval": "string",
"requestSizeLimit": "string",
"dataType": "string",
"maxRetryAttempts": "string",
"batchSize": "string",
"insertOnly": true,
"conversionInterval": "string",
"overwriteExistingData": true,
"prerequisiteJobNickname": "string",
"decimalPlaceComparison": "string",
"secondaryExchangeName": "string",
"issueTolerancePercentage": 0,
"replaceOnIssue": true
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
nickname | string | false | none | none |
exchange | string | false | none | none |
asset | string | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
startDate | string | false | none | none |
endDate | string | false | none | none |
interval | string(int64) | false | none | none |
requestSizeLimit | string(int64) | false | none | none |
dataType | string(int64) | false | none | none |
maxRetryAttempts | string(int64) | false | none | none |
batchSize | string(int64) | false | none | none |
insertOnly | boolean | false | none | none |
conversionInterval | string(int64) | false | none | none |
overwriteExistingData | boolean | false | none | none |
prerequisiteJobNickname | string | false | none | none |
decimalPlaceComparison | string(int64) | false | none | none |
secondaryExchangeName | string | false | none | none |
issueTolerancePercentage | number(double) | false | none | none |
replaceOnIssue | boolean | false | none | none |
gctrpcUpsertDataHistoryJobResponse
{
"message": "string",
"jobId": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
message | string | false | none | none |
jobId | string | false | none | none |
gctrpcWebsocketGetInfoResponse
{
"exchange": "string",
"supported": true,
"enabled": true,
"authenticatedSupported": true,
"authenticated": true,
"runningUrl": "string",
"proxyAddress": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
supported | boolean | false | none | none |
enabled | boolean | false | none | none |
authenticatedSupported | boolean | false | none | none |
authenticated | boolean | false | none | none |
runningUrl | string | false | none | none |
proxyAddress | string | false | none | none |
gctrpcWebsocketGetSubscriptionsResponse
{
"exchange": "string",
"subscriptions": [
{
"channel": "string",
"currency": "string",
"asset": "string",
"params": "string"
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
subscriptions | [gctrpcWebsocketSubscription] | false | none | none |
gctrpcWebsocketSubscription
{
"channel": "string",
"currency": "string",
"asset": "string",
"params": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
channel | string | false | none | none |
currency | string | false | none | none |
asset | string | false | none | none |
params | string | false | none | none |
gctrpcWhaleBombRequest
{
"exchange": "string",
"pair": {
"delimiter": "string",
"base": "string",
"quote": "string"
},
"priceTarget": 0,
"side": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
pair | gctrpcCurrencyPair | false | none | none |
priceTarget | number(double) | false | none | none |
side | string | false | none | none |
gctrpcWithdrawCryptoRequest
{
"exchange": "string",
"address": "string",
"addressTag": "string",
"currency": "string",
"amount": 0,
"fee": 0,
"description": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
address | string | false | none | none |
addressTag | string | false | none | none |
currency | string | false | none | none |
amount | number(double) | false | none | none |
fee | number(double) | false | none | none |
description | string | false | none | none |
gctrpcWithdrawFiatRequest
{
"exchange": "string",
"currency": "string",
"amount": 0,
"description": "string",
"bankAccountId": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
currency | string | false | none | none |
amount | number(double) | false | none | none |
description | string | false | none | none |
bankAccountId | string | false | none | none |
gctrpcWithdrawResponse
{
"id": "string",
"status": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | string | false | none | none |
status | string | false | none | none |
gctrpcWithdrawalEventByIDRequest
{
"id": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | string | false | none | none |
gctrpcWithdrawalEventByIDResponse
{
"event": {
"id": "string",
"exchange": {
"name": "string",
"id": "string",
"status": "string"
},
"request": {
"currency": "string",
"description": "string",
"amount": 0,
"type": 0,
"fiat": {
"bankName": "string",
"accountName": "string",
"accountNumber": "string",
"bsb": "string",
"swift": "string",
"iban": "string"
},
"crypto": {
"address": "string",
"addressTag": "string",
"fee": 0,
"txId": "string"
}
},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
event | gctrpcWithdrawalEventResponse | false | none | none |
gctrpcWithdrawalEventResponse
{
"id": "string",
"exchange": {
"name": "string",
"id": "string",
"status": "string"
},
"request": {
"currency": "string",
"description": "string",
"amount": 0,
"type": 0,
"fiat": {
"bankName": "string",
"accountName": "string",
"accountNumber": "string",
"bsb": "string",
"swift": "string",
"iban": "string"
},
"crypto": {
"address": "string",
"addressTag": "string",
"fee": 0,
"txId": "string"
}
},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | string | false | none | none |
exchange | gctrpcWithdrawlExchangeEvent | false | none | none |
request | gctrpcWithdrawalRequestEvent | false | none | none |
createdAt | string(date-time) | false | none | none |
updatedAt | string(date-time) | false | none | none |
gctrpcWithdrawalEventsByDateRequest
{
"exchange": "string",
"start": "string",
"end": "string",
"limit": 0
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
start | string | false | none | none |
end | string | false | none | none |
limit | integer(int32) | false | none | none |
gctrpcWithdrawalEventsByExchangeRequest
{
"exchange": "string",
"id": "string",
"limit": 0,
"currency": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
exchange | string | false | none | none |
id | string | false | none | none |
limit | integer(int32) | false | none | none |
currency | string | false | none | none |
gctrpcWithdrawalEventsByExchangeResponse
{
"event": [
{
"id": "string",
"exchange": {
"name": "string",
"id": "string",
"status": "string"
},
"request": {
"currency": "string",
"description": "string",
"amount": 0,
"type": 0,
"fiat": {
"bankName": "string",
"accountName": "string",
"accountNumber": "string",
"bsb": "string",
"swift": "string",
"iban": "string"
},
"crypto": {
"address": "string",
"addressTag": "string",
"fee": 0,
"txId": "string"
}
},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
event | [gctrpcWithdrawalEventResponse] | false | none | none |
gctrpcWithdrawalRequestEvent
{
"currency": "string",
"description": "string",
"amount": 0,
"type": 0,
"fiat": {
"bankName": "string",
"accountName": "string",
"accountNumber": "string",
"bsb": "string",
"swift": "string",
"iban": "string"
},
"crypto": {
"address": "string",
"addressTag": "string",
"fee": 0,
"txId": "string"
}
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
currency | string | false | none | none |
description | string | false | none | none |
amount | number(double) | false | none | none |
type | integer(int32) | false | none | none |
fiat | gctrpcFiatWithdrawalEvent | false | none | none |
crypto | gctrpcCryptoWithdrawalEvent | false | none | none |
gctrpcWithdrawlExchangeEvent
{
"name": "string",
"id": "string",
"status": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
name | string | false | none | none |
id | string | false | none | none |
status | string | false | none | none |
protobufAny
{
"typeUrl": "string",
"value": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
typeUrl | string | false | none | none |
value | string(byte) | false | none | none |
rpcStatus
{
"code": 0,
"message": "string",
"details": [
{
"typeUrl": "string",
"value": "string"
}
]
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
code | integer(int32) | false | none | none |
message | string | false | none | none |
details | [protobufAny] | false | none | none |