New Order

Place Order

POST https://api.abcc.com/api/v1/exchange/orders

Request Body

NameTypeDescription

volume

string

Entrusted amount

price

string

ONLY limit order

ord_type

string

limit (Limit order) market (Market order)

side

string

buy/sell

market_code

string

signature

string

tonce

number

Timestamp of the current time in milliseconds (Unix epoch)

access_key

string

{
	"order": {
		"id": 4936600,
		"created_at": "2021-08-12T08:09:44Z",
		"market_code": "btcusdt",
		"side": "buy",
		"state": "wait",
		"ord_type": "market",
		"price": null,
		"avg_price": "0.0",
		"volume": "1.816298",
		"remaining_volume": "1.816298",
		"executed_volume": "0.0",
		"trades_count": 0
	}
}

OUTPUT EXPLANATION

Parameter

Type

Explanation

id

Integer

ID

created_at

String

order time

market_code

String

The only code for the market

side

String

Buy and sell type

state

String

status

ord_type

String

Order type

price

String

Order price

avg_price

String

The average price of transactions

volume

String

initial pending order volume

remaining_volume

String

The remaining amount of pending orders

executed_volume

String

Executed pending order volume

trades_count

Integer

Number of transactions

HTTP ERROR

HTTP Code

Code

Message

Reason

Explanation

404

12001

market not found: params[:market_code]

empty

Market pair not found

400

12002

Failed to create order

reason

Failed to create order

Last updated