Orders

It refer to instructions given by a trader to buy or sell a specific cryptocurrency at a certain price or under certain conditions.

Create Order

Create Order

POST {{BASE_URL}}/orders/place-order

The order which is created at the time of buy or sell crypto.

Headers

NameTypeDescription

Authorization*

String

jwt token

Request Body

NameTypeDescription

at_price*

Integer

currency*

String

in capital words like "BTC"

order_type*

String

buy or sell

quantity*

Integer

stop_price*

Integer

total*

Integer

type*

String

limit , market or stop_limit

with_currency*

String

capitals words like "USDT"

{
    "status_code": "Integer", // 1
    "status_text": "String", // Success
    "message": "String"
}

Cnacel Order

Cancel Order

POST {{BASE_URL_NODE}}/orders/cancel-order/1

Here we send order id with API path. And at the base of order id the order is cancel.

Headers

NameTypeDescription

Authorization*

String

jwt token

{
    "status_code": "Integer", // 1
    "status_text": "String", // Success
    "message": "String"
}

All Order History

All Orders History

GET {{BASR_NODE_URL}}/orders/get?type=remaining&page=1&per_page=10

Here we represents the all order of user those are completed , pending or canceled.

Query Parameters

NameTypeDescription

type*

String

remaining or completed

page*

String

per_page*

String

Headers

NameTypeDescription

Authorization*

String

jwt token

{
    "status_code": "Integer", // 1
    "status_text": "String", // Success
    "message": "String",
    "data":"Object"
}

Last updated