API Reference

Introduction

All shell commands are CURL. You can read more about CURL here.
Patriot Exchange provides a complete RESTful API for developers which allows full access to all the functionalities on the exchange. Patriot Exchange also support websocket for real-time updates.
These endpoints are categorized into public and private. Public endpoints allow you to access public information such as price ticker, orderbook etc while private endpoints require authentication and allow you to get your balance, active orders as well as placing orders.
We have language bindings in Shell with CURL and you can view code examples in the dark area on the right.

Authentication

To authorize, use this code:
1
# With shell, you can just pass the correct header with each request
2
curl -X POST
3
-H "api-key: $API_KEY"
4
-H "api-signature: $API_SIGNATURE"
5
-H "api-expires: $API_EXPIRES"
6
"api_endpoint_here"
Copied!
Make sure to replace $API_KEY, $API_SIGNATURE, and $API_EXPIRES with your own key, signature, and expires values.
Patriot Exchange uses HMAC-SHA256 authentication for private user access to the API. HMAC-SHA256 takes a string and secret key (your api-secret) and outputs an encoded signature (your api-signature). The string being encoded should follow the format ${METHOD}${PATH}${api-expires}, where METHOD is the HTTP method of the request, PATH is the path of the request, and api-expires is a unix timestamp indicating when the request expires. If the request includes a body, the JSON body object should be appended to the string being encoded e.g. ${METHOD}${PATH}${api-expires}${JSON_BODY}. You can use an online HMAC generator to generate the signature.
Examples of strings being encoded:
  • GET request to https://api.patriotexchange.net/v2/user/balance that expires at 1575516146
    • GET/v2/user/balance1575516146
  • POST request to https://api.patriotexchange.net/v2/order that expires at 1575516146 with body {"symbol":"btc-usdt","side":"buy","size":0.001,"type":"market"}
    • POST/v2/order1583284849{"symbol":"btc-usdt","side":"buy","size":0.001,"type":"market"}
You can register for a new Patriot Exchange api-key and api-secret in the security section of trade.patriotexchange.net.
Patriot Exchange expects api-key, api-signature, and api-expires to be included in all Private API requests to the server in the request header with the following format:
1
api-key: <API_KEY>
2
api-signature: <API_SIGNATURE>
3
api-expires: <API_EXPIRES>
Copied!
You must replace API_KEY, API_SIGNATURE, and API_EXPIRES with your own values.

API Client Libraries

Client libraries make it simple to utilize our API. Currently, there are two libraries for Patriot Exchange that support three languages:
  • Patriot Exchange Node Library - COMING SOON - Our official library that supports Node.js. Connects to both our API and websocket.
  • CCXT - An authorized library that supports Node.js, PHP, and Python. Connects to our API.

Public

Health

Request
1
curl -X GET "https://api.patriotexchange.net/v2/health"
Copied!
Response
1
{
2
"name": "Patriot Exchange",
3
"version": "2.2.3",
4
"host": "https://api.patriotexchange.net",
5
"basePath": "/v2"
6
}
Copied!
This endpoint retrieves the exchange's basic information and checks its health.

HTTP Request

GET https://api.patriotexchange.net/v2/health

Constants

Request
1
curl -X GET "https://api.patriotexchange.net/v2/constants"
Copied!
Response
1
{
2
"coins": {
3
"usdt": {
4
"id": 6,
5
"fullname": "USD Tether",
6
"symbol": "usdt",
7
"active": true,
8
"verified": true,
9
"allow_deposit": true,
10
"allow_withdrawal": true,
11
"withdrawal_fee": 20,
12
"min": 0.1,
13
"max": 10000000,
14
"increment_unit": 0.1,
15
"created_at": "2019-08-09T10:45:43.367Z",
16
"updated_at": "2021-04-20T03:02:48.635Z",
17
"logo": "https://.s3.ap-northeast-2.amazonaws.com/exchange/icons/usdt.",
18
"code": "usdt",
19
"is_public": true,
20
"meta": {},
21
"estimated_price": 1,
22
"description": null,
23
"type": "blockchain",
24
"network": "eth,trx",
25
"standard": "erc-20",
26
"issuer": "Patriot Exchange",
27
"withdrawal_fees": null,
28
"created_by": 1
29
},
30
...
31
},
32
"pairs": {
33
"patx-eth": {
34
"id": 1,
35
"name": "patx-eth",
36
"pair_base": "patx",
37
"pair_2": "eth",
38
"min_size": 0.1,
39
"max_size": 10000000,
40
"min_price": 0.01,
41
"max_price": 10000,
42
"increment_size": 0.1,
43
"increment_price": 0.0001,
44
"active": true,
45
"verified": true,
46
"code": "patx-eth",
47
"is_public": true,
48
"estimated_price": 0.1,
49
"created_at": "2021-10-09T10:45:43.353Z",
50
"updated_at": "2021-10-09T10:45:43.353Z",
51
"created_by": 1
52
},
53
...
54
}
55
}
Copied!
This endpoint retrieves system information for coins and pairs.

HTTP Request

Tiers

Request
1
curl -X GET "https://api.patriotexchange.net/v2/tiers"
Copied!
Response
1
{
2
"1": {
3
"id": 1,
4
"name": "Base Trader",
5
"icon": "",
6
"description": "basic tier",
7
"deposit_limit": 0,
8
"withdrawal_limit": 0,
9
"fees": {
10
"maker": {
11
"patx-eth": 0.2,
12
"xmr-usdt": 0.2,
13
"eth-usdt": 0.2,
14
"btc-usdt": 0.2,
15
"eth-btc": 0.2
16
},
17
"taker": {
18
"patx-eth": 0.2,
19
"xmr-usdt": 0.2,
20
"eth-usdt": 0.2,
21
"btc-usdt": 0.2,
22
"eth-btc": 0.2
23
}
24
},
25
"note": "",
26
"created_at": "2021-10-28T02:00:57.128Z",
27
"updated_at": "2021-11-13T15:42:30.615Z"
28
},
29
"2": {
30
"id": 2,
31
"name": "VIP Trader",
32
"icon": "",
33
"description": "vip tier",
34
"deposit_limit": 0,
35
"withdrawal_limit": 0,
36
"fees": {
37
"maker": {
38
"patx-eth": 0,
39
"xmr-usdt": 0,
40
"eth-usdt": 0,
41
"btc-usdt": 0,
42
"eth-btc": 0
43
},
44
"taker": {
45
"patx-eth": 0,
46
"xmr-usdt": 0,
47
"eth-usdt": 0,
48
"btc-usdt": 0,
49
"eth-btc": 0
50
}
51
},
52
"note": "",
53
"created_at": "2021-10-28T02:01:12.299Z",
54
"updated_at": "2021-11-07T08:21:15.300Z"
55
},
56
...
57
}
Copied!
This endpoint retrieves system tier levels for users.

HTTP Request

GET https://api.patriotexchange.net/v2/tiers

Ticker

Request
1
curl -X GET "https://api.patriotexchange.net/v2/ticker?symbol=patx-eth"
Copied!
Response
1
{
2
"open": 0.54,
3
"close": 0.54,
4
"high": 0.54,
5
"low": 0.54,
6
"last": 0.54,
7
"volume": 18653.3,
8
"timestamp": "2021-11-28T03:05:24.996Z"
9
}
Copied!
This endpoint retrieves ticker information for a pair.

HTTP Request

GET https://api.patriotexchange.net/v2/ticker?symbol=${symbol}

PARAMETERS

Parameter
Type
Required/Optional
Description
symbol
string
Required
The currency pair symbol (patx-eth)

Tickers

Request
1
curl -X GET "https://api.patriotexchange.net/v2/tickers"
Copied!
Response
1
{
2
"patx-eth": {
3
"time": "2021-11-27T03:05:41.012Z",
4
"open": 0.54,
5
"close": 0.54,
6
"high": 0.54,
7
"low": 0.54,
8
"last": 0.54,
9
"volume": 18653.3,
10
"symbol": "patx-eth"
11
},
12
...
13
}
Copied!
This endpoint retrieves ticker information for all pairs.

HTTP Request

GET https://api.patriotexchange.net/v2/tickers

Orderbook

Request
1
curl -X GET "https://api.patriotexchange.net/v2/orderbook?symbol=patx-eth"
Copied!
Response
1
{
2
"patx-eth": {
3
"bids": [
4
[0.212,8],
5
[0.21,5],
6
[0.208,15],
7
[0.206,583],
8
[0.205,1000],
9
[0.204,1000],
10
[0.203,1000],
11
[0.202,1000],
12
[0.201,1000],
13
[0.2,1000]
14
],
15
"asks": [
16
[0.23,45],
17
[0.24,824],
18
[0.248,10]
19
],
20
"timestamp": "2021-11-02T21:36:29.395Z"
21
}
22
}
Copied!
This endpoint retrieves 10 level bids and 10 level asks of the orderbook for a symbol.

HTTP Request

GET https://api.patriotexchange.net/v2/orderbook?symbol=${symbol}

PARAMETERS

Parameter
Type
Required/Optional
Description
symbol
string
Required
The currency pair symbol (patx-eth, etc.)

Orderbooks

Request
1
curl -X GET "https://api.patriotexchange.net/v2/orderbooks"
Copied!
Response
1
{
2
"patx-eth": {
3
"bids": [...],
4
"asks": [...],
5
"timestamp": "2021-11-02T21:36:29.395Z"
6
},
7
"btc-usdt": {
8
"bids": [...],
9
"asks": [...],
10
"timestamp": "2021-11-02T21:36:29.395Z"
11
},
12
...
13
}
Copied!
This endpoint retrieves 10 level bids and 10 level asks of the orderbook for all symbols.

HTTP Request

GET https://api.patriotexchange.net/v2/orderbooks

Trades

Request
1
curl -X GET "https://api.patriotexchange.net/v2/trades?symbol=patx-eth"
Copied!
Response
1
{
2
"patx-eth": [
3
{
4
"size": 10,
5
"price": 0.2,
6
"side": "buy",
7
"timestamp": "2021-11-23T04:00:20.744Z"
8
},
9
{
10
"size": 5,
11
"price": 0.21,
12
"side": "buy",
13
"timestamp": "2021-11-23T03:32:38.927Z"
14
},
15
{
16
"size": 5,
17
"price": 0.23,
18
"side": "sell",
19
"timestamp": "2021-11-23T03:13:42.361Z"
20
}
21
],
22
...
23
}
Copied!
This endpoint retrieves the last 30 trades.

HTTP Request

GET https://api.patriotexchange.net/v2/trades

PARAMETERS

Parameter
Type
Required/Optional
Description
symbol
string
Optional
The currency pair symbol (patx-eth, etc.)

Chart

Request
1
curl -X GET "https://api.patriotexchange.net/v2/chart?symbol=patx-eth&resolution=1D&from=1616987453&to=1619579513"
Copied!
Response
1
[
2
{
3
"time": "2021-04-14T00:00:00.000Z",
4
"close": 0.25,
5
"high": 0.21,
6
"low": 0.25,
7
"open": 0.21,
8
"symbol": "patx-eth",
9
"volume": 204.2
10
},
11
{
12
"time": "2021-04-19T00:00:00.000Z",
13
"close": 0.25,
14
"high": 0.25,
15
"low": 0.25,
16
"open": 0.25,
17
"symbol": "patx-eth",
18
"volume": 437.8
19
},
20
...
21
]
Copied!
This endpoint retrieves a trading pair's trade history HOLCV.

HTTP Request

GET https://api.patriotexchange.net/v2/chart?symbol=${symbol}&resolution=${resolution}&from=${from}&to=${to}

PARAMETERS

Parameter
Type
Required/Optional
Description
symbol
string
Required
Symbol to get
resolution
string
Required
Time interval resolution (15, 60, 240, 1D, 1W)
from
string
Required
Beginning UNIX timestamp
to
string
Required
Ending UNIX timestamp

Charts

Request
1
curl -X GET "https://api.patriotexchange.net/v2/charts?resolution=1D&from=1551663947&to=1582768007"
Copied!
Response
1
{
2
"patx-eth": [
3
{
4
"time": "2020-01-01T00:00:00.000Z",
5
"close": 0.2,
6
"high": 0.23,
7
"low": 0.2,
8
"open": 0.23,
9
"symbol": "patx-eth",
10
"volume": 13538
11
},
12
{
13
"time": "2020-01-02T00:00:00.000Z",
14
"close": 0.2,
15
"high": 0.2,
16
"low": 0.2,
17
"open": 0.2,
18
"symbol": "patx-eth",
19
"volume": 54
20
},
21
{
22
"time": "2020-01-03T00:00:00.000Z",
23
"close": 0.2,
24
"high": 0.201,
25
"low": 0.2,
26
"open": 0.2,
27
"symbol": "patx-eth",
28
"volume": 25982
29
},
30
...
31
],
32
"btc-usdt": [...],
33
...
34
}
Copied!
This endpoint retrieves trade history HOLCV for all pairs.

HTTP Request

GET https://api.patriotexchange.net/v2/charts?resolution=${resolution}&from=${from}&to=${to}

PARAMETERS

Parameter
Type
Required/Optional
Description
resolution
string
Required
Time interval resolution (15, 60, 240, 1D, 1W)
from
string
Required
Beginning UNIX timestamp
to
string
Required
Ending UNIX timestamp

Private

You must replace API_KEY, API_SIGNATURE, and API_EXPIRES with your own values in the header of all private http requests. Refer to the authentication section above to learn more.

Get User

Request
1
curl -X GET
2
-H "api-key: $API_KEY"
3
-H "api-signature: $API_SIGNATURE"
4
-H "api-expires: $API_EXPIRES"
5
"https://api.patriotexchange.net/v2/user"
Copied!
Response
1
{
2
"id": 1,
3
"email": "[email protected]",
4
"full_name": "Tyler Durden",
5
"gender": true,
6
"nationality": "USA",
7
"dob": "2017-07-21T17:32:28.000Z",
8
"phone_number": "",
9
"address": {
10
"city": "Bradford",
11
"address": "537 Paper Street",
12
"country": "USA",
13
"postal_code": "19808"
14
},
15
"id_data": {
16
"type": "passport",
17
"number": "999",
18
"issued_date": "2017-07-21T17:32:28.000Z",
19
"expiration_date": "2017-07-21T17:32:28.000Z"
20
},
21
"bank_account": [...],
22
"crypto_wallet": {},
23
"verification_level": 2,
24
"email_verified": true,
25
"otp_enabled": false,
26
"activated": true,
27
"username": "narrator",
28
"affiliation_code": "STRING",
29
"settings": {
30
"chat": {
31
"set_username": true
32
},
33
"risk": {
34
"popup_warning": true,
35
"order_portfolio_percentage": 90
36
},
37
"audio": {
38
"all": true,
39
"order_placed": true,
40
"public_trade": true,
41
"click_amounts": true,
42
"order_canceled": true,
43
"order_completed": true,
44
"quick_trade_success": true,
45
"quick_trade_timeout": true,
46
"get_quote_quick_trade": true,
47
"order_partially_completed": true
48
},
49
"language": "en",
50
"interface": {
51
"theme": "dark",
52
"order_book_levels": 20
53
},
54
"notification": {
55
"popup_order_completed": false,
56
"popup_order_confirmation": false,
57
"popup_order_partially_filled": false
58
}
59
},
60
"affiliation_rate": 0,
61
"network_id": 90,
62
"created_at": "2020-10-06T11:01:46.715Z",
63
"updated_at": "2021-02-16T07:48:03.108Z",
64
"balance": {
65
"usdt_balance": 0,
66
"usdt_available": 0,
67
"patx_balance": 0,
68
"patx_available": 0,
69
...,
70
"updated_at": "2021-02-16T05:48:28.014Z"
71
},
72
"wallet": [
73
{
74
"currency": "patx",
75
"address": "0x000000000000000000000000000000000000000",
76
"network": "eth",
77
"standard": null,
78
"is_valid": true,
79
"created_at": "2021-04-07T07:23:33.212Z"
80
},
81
{
82
"currency": "usdt",
83
"address": "0x0000000000000000000000000000000000000000",
84
"network": "eth",
85
"standard": null,
86
"is_valid": true,
87
"created_at": "2021-04-22T13:46:54.014Z"
88
},
89
...
90
]
91
}
Copied!
This endpoint gets user's information, wallet address as well as his balance.

HTTP Request

GET https://api.patriotexchange.net/v2/user

Get Balance

Request
1
curl -X GET
2
-H "api-key: $API_KEY"
3
-H "api-signature: $API_SIGNATURE"
4
-H "api-expires: $API_EXPIRES"
5
"https://api.patriotexchange.net/v2/user/balance"
Copied!
Response
1
{
2
"patx_balance": 0,
3
"patx_available": 0,
4
"usdt_balance": 0,
5
"usdt_available": 0,
6
...
7
"updated_at": "2021-11-23T04:14:08.705Z"
8
}
Copied!
This endpoint gets a user's balance.

HTTP Request

GET https://api.patriotexchange.net/v2/user/balance

Get Deposits

Request
1
curl -X GET
2
-H "api-key: $API_KEY"
3
-H "api-signature: $API_SIGNATURE"
4
-H "api-expires: $API_EXPIRES"
5
"https://api.patriotexchange.net/v2/user/deposits"
Copied!
Response
1
{
2
"count": 1,
3
"data": [
4
{
5
"id": 229,
6
"amount": 1,
7
"fee": 0,
8
"address": "string",
9
"transaction_id": "string",
10
"status": true,
11
"dismissed": false,
12
"rejected": false,
13
"processing": false,
14
"waiting": false,
15
"description": "",
16
"type": "deposit",
17
"currency": "usdt",
18
"network": "eth",
19
"created_at": "2021-02-16T05:48:28.011Z",
20
"updated_at": "2021-02-16T05:48:28.011Z",
21
"user_id": 90
22
}
23
]
24
}
Copied!
This endpoint displays user's deposits

HTTP Request

GET https://api.patriotexchange.net/v2/user/deposits

PARAMETERS

Parameter
Type
Required/Optional
Description
currency
string
Optional
The currency pair symbol
limit
number
Optional
Number of elements to return. Default: 50. Maximun: 100
page
number
Optional
Page of data to retrieve
order_by
string
Optional
Field to order data
order
string
Optional
asc or desc
transaction_id
string
Optional
Get deposits with this transaction ID
address
string
Optional
Get deposits made to this address
status
boolean
Optional
Completed status of deposits to get
dismissed
boolean
Optional
Dismissed status of deposits to get
rejected
boolean
Optional
Rejected status of deposits to get
processing
boolean
Optional
Processing status of deposits to get
waiting
boolean
Optional
Waiting status of deposits to get
start_date
date-time
Optional
Starting date of queried data in ISO 8601 format
end_date
date-time
Optional
Ending date of queried data in ISO 8601 format
format
string
Optional
Pass value csv to download csv file

Get Withdrawals

Request
1
curl -X GET
2
-H "api-key: $API_KEY"
3
-H "api-signature: $API_SIGNATURE"
4
-H "api-expires: $API_EXPIRES"
5
"https://api.patriotexchange.net/v2/user/withdrawals"
Copied!
Response
1
{
2
"count": 1,
3
"data": [
4
{
5
"id": 224,
6
"amount": 1,
7
"fee": 0,
8
"address": "string",
9
"transaction_id": "string",
10
"status": true,
11
"dismissed": false,
12
"rejected": false,
13
"processing": false,
14
"waiting": false,
15
"description": "",
16
"type": "withdrawal",
17
"currency": "usdt",
18
"network": "eth",
19
"created_at": "2021-02-15T02:36:47.167Z",
20
"updated_at": "2021-02-15T02:36:47.167Z",
21
"user_id": 90
22
}
23
]
24
}
Copied!
This endpoint displays user's withdrawals

HTTP Request

GET https://api.patriotexchange.net/v2/user/withdrawals

PARAMETERS

Parameter
Type
Required/Optional
Description
currency
string
Optional
The currency pair symbol (patx-eth)
limit
number
Optional
Number of elements to return. Default: 50. Maximun: 100
page
number
Optional
Page of data to retrieve
order_by
string
Optional
Field to order data
order
string
Optional
asc or desc
transaction_id
string
Optional
Get withdrawals with this transaction ID
address
string
Optional
Get withdrawals made to this address
status
boolean
Optional
Completed status of withdrawals to get
dismissed
boolean
Optional
Dismissed status of withdrawals to get
rejected
boolean
Optional
Rejected status of withdrawals to get
processing
boolean
Optional
Processing status of withdrawals to get
waiting
boolean
Optional
Waiting status of withdrawals to get
start_date
date-time
Optional
Starting date of queried data in ISO 8601 format
end_date
date-time
Optional
Ending date of queried data i ISO 8601 format
format
string
Optional
Pass value csv to download csv file

Get Withdrawal Fee

Request
1
curl -X GET
2
-H "api-key: $API_KEY"
3
-H "api-signature: $API_SIGNATURE"
4
-H "api-expires: $API_EXPIRES"
5
"https://api.patriotexchange.net/v2/user/withdrawal/fee?symbol=$symbol"
Copied!
Response
1
{
2
"fee": 0.001
3
}
Copied!
This endpoint gets the withdrawal fee for a certain currency

HTTP Request

GET https://api.patriotexchange.net/v2/user/withdrawal/fee?currency=${currency}

PARAMETERS

Parameter
Type
Required/Optional
Description
currency
string
Required
The desired currency e.g. patx

Create Withdrawal Request

Request
1
curl -X POST
2
-H "api-key: $API_KEY"
3
-H "api-signature: $API_SIGNATURE"
4
-H "api-expires: $API_EXPIRES"
5
-H "Content-Type: application/json"
6
-d '{"currency":$currency,"amount":$amount,"address":$address}'
7
"https://api.patriotexchange.net/v2/user/request-withdrawal"
Copied!
Response
1
{
2
"message": "Success"
3
}
Copied!
This endpoint creates a withdrawal request for the user

HTTP Request

POST https://api.patriotexchange.net/v2/user/request-withdrawal

PARAMETERS

Parameter
Type
Required/Optional
Description
currency
string
Required
The desired currency e.g. patx
amount
number
Required
The amount to withdrawal e.g. 5
address
string
Required
The recipient wallet's address
network
string
Optional
Network of currency being withdrawn if there are multiple networks for currency
otp_code
string
Optional
OTP for user if user has OTP enabled

Get Trades

Request
1
curl -X GET
2
-H "api-key: $API_KEY"
3
-H "api-signature: $API_SIGNATURE"
4
-H "api-expires: $API_EXPIRES"
5
"https://api.patriotexchange.net/v2/user/trades"
Copied!
Response
1
{
2
"count": 1,
3
"data": [
4
{
5
"side": "sell",
6
"symbol": "patx-eth",
7
"size": 0.1,
8
"price": 0.15,
9
"timestamp": "2021-02-15T07:34:34.203Z",
10
"order_id": "string",
11
"fee": 0.2,
12
"fee_coin": "usdt"
13
}
14
]
15
}
Copied!
This endpoint displays user's trades

HTTP Request

GET https://api.patriotexchange.net/v2/user/trades

PARAMETERS

Parameter
Type
Required/Optional
Description
symbol
string
Optional
The currency pair symbol
limit
number
Optional
Number of elements to return. Default: 50. Maximun: 100
page
number
Optional
Page of data to retrieve
order_by
string
Optional
Field to order data
order
string
Optional
asc or desc
start_date
date-time
Optional
Starting date of queried data in ISO 8601 format
end_date
date-time
Optional
Ending date of queried data in ISO 8601 format
format
string
Optional
Pass value csv to download csv file

Get All Orders

Request
1
curl -X GET
2
-H "api-key: $API_KEY"
3
-H "api-signature: $API_SIGNATURE"
4
-H "api-expires: $API_EXPIRES"
5
"https://api.patriotexchange.net/v2/orders"
Copied!
Response
1
{
2
"count": 1,
3
"data": [
4
{
5
"id": "string",
6
"side": "sell",
7
"symbol": "patx-eth",
8
"size": 0.1,
9
"filled": 0,
10
"stop": null,
11
"fee": 0,
12
"fee_coin": "usdt",
13
"type": "limit",
14
"price": 1.09,
15
"status": "new",
16
"created_by": 116,
17
"created_at": "2021-02-17T02:32:38.910Z",
18
"updated_at": "2021-02-17T02:32:38.910Z",
19
"User": {
20
"id": 116,
21
"email": "[email protected]",
22
"username": "narrator",
23
"exchange_id": 176
24
}
25
}
26
]
27
}
Copied!
This endpoint gets all active orders placed by the user

HTTP Request

GET https://api.patriotexchange.net/v2/orders

PARAMETERS

Parameter
Type
Required/Optional
Description
symbol
string
Optional
The currency pair symbol
side
string
Optional
Side of orders to query (buy, sell)
status
string
Optional
Status of order (filled, pfilled, canceled, new)
open
boolean
Optional
Open status of order
limit
number
Optional
Number of elements to return. Default: 50. Maximun: 100
page
number
Optional
Page of data to retrieve
order_by
string
Optional
Field to order data
order
string
Optional
asc or desc
start_date
date-time
Optional
Starting date of queried data in ISO 8601 format
end_date
date-time
Optional
Ending date of queried data in ISO 8601 format

Get Order

Request
1
curl -X GET
2
-H "api-key: $API_KEY"
3
-H "api-signature: $API_SIGNATURE"
4
-H "api-expires: $API_EXPIRES"
5
"https://api.patriotexchange.net/v2/order?$order_id"
Copied!
Response
1
{
2
"id": "string",
3
"side": "sell",
4
"symbol": "patx-eth",
5
"size": 0.1,
6
"filled": 0,
7
"stop": null,
8
"fee": 0,
9
"fee_coin": "usdt",
10
"type": "limit",
11