Skip to main content
PUT
/
trade
/
orders
Orders - Update the amount and/or price of an order
curl --request PUT \
  --url https://api.ripio.com/trade/orders \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --header 'signature: <signature>' \
  --header 'timestamp: <timestamp>' \
  --data '
{
  "order_id": "00CE34E9-0168-4050-9D58-10C705A1AC81",
  "unit_price": "10",
  "amount": "100"
}
'
{
  "data": 123,
  "error_code": null,
  "message": null
}

Headers

authorization
string
required

The API key as a string.

signature
string
required

See the Generating Signature section for more details.

timestamp
number
required

A timestamp in milliseconds. See the Timestamp Security section for more details.

timstamp-tolerance
number

An additional, non-required parameter, that you can send to specify the number of milliseconds after the timestamp for the request to be valid. See the Timestamp Security section for more details.

Body

application/json
order_id
string
required

Unique identifier of the order to update

Example:

"00CE34E9-0168-4050-9D58-10C705A1AC81"

unit_price
string

New order price. Cannot be changed if it would immediately execute against existing orders

Example:

"10"

amount
string

New order amount in base currency

Example:

"100"

Response

200 - application/json

Ok

data
number
required
error_code
number
required
Example:

null

message
string
required
Example:

null