Orders

Get your orders, result is paginated. Cancel orders or create a Sell/Buy order.

get

Get your orders, result is paginated.

Query parameters
marketstringOptional
base_unitstring · enumOptionalPossible values:
quote_unitstring · enumOptionalPossible values:
statestringOptional

Filter order by state.

limitinteger · int32 · max: 1000Optional

Limit the number of returned orders, default to 100.

pageinteger · int32Optional

Specify the page of paginated results.

order_bystring · enumOptional

If set, returned orders will be sorted in specific order, default to "desc".

Possible values:
ord_typestring · enumOptional

Filter order by ord_type.

Possible values:
typestring · enumOptional

Filter order by type.

Possible values:
time_frominteger · int32Optional

An integer represents the seconds elapsed since Unix epoch.If set, only orders created after the time will be returned.

time_tointeger · int32Optional

An integer represents the seconds elapsed since Unix epoch.If set, only orders created before the time will be returned.

Responses
200
Get your orders, result is paginated.
application/json
get
GET /api/v2/live/market/orders HTTP/1.1
Host: www.mameex.com
Accept: */*
200

Get your orders, result is paginated.

[
  {
    "id": 1,
    "uuid": "text",
    "side": "text",
    "ord_type": "text",
    "price": 1,
    "avg_price": 1,
    "state": "text",
    "market": "text",
    "created_at": "text",
    "updated_at": "text",
    "origin_volume": 1,
    "remaining_volume": 1,
    "executed_volume": 1,
    "maker_fee": 1,
    "taker_fee": 1,
    "trades_count": 1,
    "trades": [
      {
        "id": "text",
        "price": 1,
        "amount": 1,
        "total": 1,
        "fee_currency": 1,
        "fee": 1,
        "fee_amount": 1,
        "market": "text",
        "created_at": "text",
        "taker_type": "text",
        "side": "text",
        "order_id": 1
      }
    ]
  }
]
get

Get information of specified order.

Path parameters
idstringRequired
Responses
200
Get information of specified order.
application/json
get
GET /api/v2/live/market/orders/{id} HTTP/1.1
Host: www.mameex.com
Accept: */*
200

Get information of specified order.

{
  "id": 1,
  "uuid": "text",
  "side": "text",
  "ord_type": "text",
  "price": 1,
  "avg_price": 1,
  "state": "text",
  "market": "text",
  "created_at": "text",
  "updated_at": "text",
  "origin_volume": 1,
  "remaining_volume": 1,
  "executed_volume": 1,
  "maker_fee": 1,
  "taker_fee": 1,
  "trades_count": 1,
  "trades": [
    {
      "id": "text",
      "price": 1,
      "amount": 1,
      "total": 1,
      "fee_currency": 1,
      "fee": 1,
      "fee_amount": 1,
      "market": "text",
      "created_at": "text",
      "taker_type": "text",
      "side": "text",
      "order_id": 1
    }
  ]
}
post

Cancel all my orders.

Body
marketstringOptional
sidestringOptional

If present, only sell orders (asks) or buy orders (bids) will be canncelled.

Responses
201
Cancel all my orders.
application/json
post
POST /api/v2/live/market/orders/cancel HTTP/1.1
Host: www.mameex.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 31

"market='text'&side='text'"
201

Cancel all my orders.

{
  "id": 1,
  "uuid": "text",
  "side": "text",
  "ord_type": "text",
  "price": 1,
  "avg_price": 1,
  "state": "text",
  "market": "text",
  "created_at": "text",
  "updated_at": "text",
  "origin_volume": 1,
  "remaining_volume": 1,
  "executed_volume": 1,
  "maker_fee": 1,
  "taker_fee": 1,
  "trades_count": 1,
  "trades": [
    {
      "id": "text",
      "price": 1,
      "amount": 1,
      "total": 1,
      "fee_currency": 1,
      "fee": 1,
      "fee_amount": 1,
      "market": "text",
      "created_at": "text",
      "taker_type": "text",
      "side": "text",
      "order_id": 1
    }
  ]
}
post

Cancel an order.

Path parameters
idstringRequired
Responses
201
Cancel an order.
post
POST /api/v2/live/market/orders/{id}/cancel HTTP/1.1
Host: www.mameex.com
Accept: */*
201

Cancel an order.

No content

post

Create a Sell/Buy order.

Body
marketstringRequired
sidestringRequired
volumenumberRequired
ord_typestringOptional
pricenumberRequired
Responses
201
Create a Sell/Buy order.
application/json
post
POST /api/v2/live/market/orders HTTP/1.1
Host: www.mameex.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 70

"market='text'&side='text'&volume=1&ord_type='text'&price=1"
201

Create a Sell/Buy order.

{
  "id": 1,
  "uuid": "text",
  "side": "text",
  "ord_type": "text",
  "price": 1,
  "avg_price": 1,
  "state": "text",
  "market": "text",
  "created_at": "text",
  "updated_at": "text",
  "origin_volume": 1,
  "remaining_volume": 1,
  "executed_volume": 1,
  "maker_fee": 1,
  "taker_fee": 1,
  "trades_count": 1,
  "trades": [
    {
      "id": "text",
      "price": 1,
      "amount": 1,
      "total": 1,
      "fee_currency": 1,
      "fee": 1,
      "fee_amount": 1,
      "market": "text",
      "created_at": "text",
      "taker_type": "text",
      "side": "text",
      "order_id": 1
    }
  ]
}

Last updated