Amend Order

PATCH https://api.sfox.com/v1/orders/:order_id

Make the following adjustments to the quantity or amount, price, and stop amount or stop percent parameters of an order without canceling the order.

Path Parameters

Parameter
Type
Description

order_id required

string

The order ID generated by sFOX upon order creation.

Body Parameters

Parameter
Type
Description

quantity

number

Increase the quantity of an order.

amount

number

Increase the quantity of an order. amount may only be increased for Stop (304) and Trailing Stop (308) orders

price

number

  • BUY Orders: Increase limit price

  • SELL Orders: Decrease limit price

  • Price cannot be modified for Trailing Stop (308) order

stop_amount

number

Any modification is allowed

stop_percent

number

Any modification is allowed

Example Requests

curl -X PATCH \
  -H 'Authorization: Bearer <API_TOKEN>' \
  --data '{ "quantity": 2 }'  \
  'https://api.sfox.com/v1/orders/123'

Last updated