# Orders

## GET Orders

> Retrieve a list of orders with optional filtering and pagination.

```json
{"openapi":"3.0.3","info":{"title":"Aquanow CAMS REST API","version":"1.0"},"servers":[{"url":"https://cams.aquanow.com/api","description":"production"},{"url":"http://localhost:3001/api","description":"local"},{"url":"https://cams.dev.aquanow.com/api","description":"dev"},{"url":"https://cams.staging.aquanow.com/api","description":"staging"},{"url":"https://cams.cert.aquanow.com/api","description":"cert"},{"url":"https://marketdata.aquanow.com","description":"production market data"},{"url":"https://marketdata.staging.aquanow.com","description":"staging market data"},{"url":"https://marketdata.dev.aquanow.com","description":"dev market data"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","scheme":"bearer"}},"schemas":{"OrderStatus":{"type":"string","enum":["PLACED","FILLED","FAILED","CANCELED","PENDING_NEW","NEW","PARTIALLY_FILLED","REJECTED","PENDING_CANCEL","CANCEL_FAILED","EXPIRED"]},"SortDirection":{"type":"string","enum":["ASC","DESC"]},"Order":{"title":"Order","type":"object","properties":{"orderId":{"type":"string","format":"uuid"},"accountId":{"type":"string","format":"uuid"},"orderStatus":{"$ref":"#/components/schemas/OrderStatus"},"side":{"type":"string"},"pair":{"type":"string"},"strategy":{"type":"string","enum":["RFQ"]},"limitPrice":{"type":"string","format":"number","nullable":true},"orderPrice":{"type":"string","format":"number"},"leavesQty":{"type":"string","format":"number","description":"Remaining quantity to be filled"},"orderQuantity":{"type":"string","format":"number"},"fillQuantity":{"type":"string","format":"number"},"cumulativeQty":{"type":"string","format":"number","description":"Only exists for MARKET/LIMIT orders"},"fillPrice":{"type":"string","format":"number"},"avgPrice":{"type":"string","format":"number","description":"Only exists for MARKET/LIMIT orders","nullable":true},"orderType":{"$ref":"#/components/schemas/OrderType"},"timeInForce":{"$ref":"#/components/schemas/TimeInForceNullable","nullable":true},"expireTime":{"type":"string","format":"date-time","description":"Only exists for LIMIT orders","nullable":true},"clientOrderId":{"type":"string","format":"uuid","nullable":true},"fillPercentage":{"type":"string","format":"number"},"clientFeeRate":{"type":"string","format":"integer","nullable":true},"clientFeeAmount":{"type":"string","format":"number","description":"Fixed fiat fee amount in tenant native currency","nullable":true},"providerFeeRate":{"type":"string","format":"integer"},"placedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time","nullable":true},"clientReference":{"type":"string","nullable":true},"rejectedAt":{"type":"string","format":"date-time","nullable":true,"description":"Only exists for REJECTED orders"},"orderRejectReason":{"type":"string","description":"Only exists for REJECTED orders","nullable":true},"currency":{"type":"string"}}},"OrderType":{"type":"string","enum":["MARKET","LIMIT","PREVIOUSLY_QUOTED"]},"TimeInForceNullable":{"allOf":[{"$ref":"#/components/schemas/TimeInForce"}],"nullable":true},"TimeInForce":{"type":"string","enum":["GTC","GTD","DAY"],"description":"Time in force should be DAY for market orders"}},"responses":{"400":{"description":"Validation Error"},"401":{"description":"Unauthorized"},"403":{"description":"Insufficient Privileges"},"4XX":{"description":"Client error"},"5XX":{"description":"Server error"}}},"paths":{"/v1/orders":{"get":{"summary":"GET Orders","description":"Retrieve a list of orders with optional filtering and pagination.","tags":["Trading"],"parameters":[{"name":"clientReference","in":"query","schema":{"type":"string"},"description":"Filter orders by client provided reference parameter"},{"name":"orderStatus","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/OrderStatus"},"description":"Comma-delimited list of order statuses. Returns orders matching any of the provided statuses."},"style":"form","explode":false,"description":"Filter orders by order status"},{"name":"placedAtStart","in":"query","schema":{"type":"string","format":"date-time"},"description":"Filter orders by when the order was placed. Lower bound, exclusive"},{"name":"placedAtEnd","in":"query","schema":{"type":"string","format":"date-time"},"description":"Filter orders by when the order was placed. Upper bound, inclusive"},{"name":"completedAtStart","in":"query","schema":{"type":"string","format":"date-time"},"description":"Filter orders by when the order was completely filled. Lower bound, exclusive"},{"name":"completedAtEnd","in":"query","schema":{"type":"string","format":"date-time"},"description":"Filter orders by when the order was completely filled. Upper bound, inclusive"},{"name":"accountId","in":"query","schema":{"type":"string","format":"uuid"},"description":"Filter orders by account ID"},{"name":"pair","in":"query","schema":{"type":"string"},"description":"Filter orders by pair"},{"name":"side","in":"query","schema":{"type":"string"},"description":"Filter orders by side"},{"name":"after","in":"query","required":false,"schema":{"type":"string"},"description":"When provided, specifies the last item returned in previous page, used to fetch the next page. Fetches the first page when omitted."},{"name":"limit","in":"query","required":false,"schema":{"type":"string","format":"integer"},"description":"When provided, specifies the number of items to return in the page. Uses default page size of 10 when omitted."},{"name":"sortField","in":"query","required":false,"schema":{"type":"string","enum":["orderStatus","placedAt","completedAt"]},"description":"Will sort the returned data using the specified field."},{"name":"sortDirection","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDirection"},"description":"Specifies the sort direction for the sortField."}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"after":{"type":"string","nullable":true,"description":"The token of the last item in the response"},"totalCount":{"type":"string","format":"integer","description":"The total number of items in the entire filtered data set"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Order"}}}}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"4XX":{"$ref":"#/components/responses/4XX"},"5XX":{"$ref":"#/components/responses/5XX"}},"operationId":"GetOrders"}}}}
```

## GET Order

> Retrieve an order by its order ID.

```json
{"openapi":"3.0.3","info":{"title":"Aquanow CAMS REST API","version":"1.0"},"servers":[{"url":"https://cams.aquanow.com/api","description":"production"},{"url":"http://localhost:3001/api","description":"local"},{"url":"https://cams.dev.aquanow.com/api","description":"dev"},{"url":"https://cams.staging.aquanow.com/api","description":"staging"},{"url":"https://cams.cert.aquanow.com/api","description":"cert"},{"url":"https://marketdata.aquanow.com","description":"production market data"},{"url":"https://marketdata.staging.aquanow.com","description":"staging market data"},{"url":"https://marketdata.dev.aquanow.com","description":"dev market data"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","scheme":"bearer"}},"schemas":{"Order":{"title":"Order","type":"object","properties":{"orderId":{"type":"string","format":"uuid"},"accountId":{"type":"string","format":"uuid"},"orderStatus":{"$ref":"#/components/schemas/OrderStatus"},"side":{"type":"string"},"pair":{"type":"string"},"strategy":{"type":"string","enum":["RFQ"]},"limitPrice":{"type":"string","format":"number","nullable":true},"orderPrice":{"type":"string","format":"number"},"leavesQty":{"type":"string","format":"number","description":"Remaining quantity to be filled"},"orderQuantity":{"type":"string","format":"number"},"fillQuantity":{"type":"string","format":"number"},"cumulativeQty":{"type":"string","format":"number","description":"Only exists for MARKET/LIMIT orders"},"fillPrice":{"type":"string","format":"number"},"avgPrice":{"type":"string","format":"number","description":"Only exists for MARKET/LIMIT orders","nullable":true},"orderType":{"$ref":"#/components/schemas/OrderType"},"timeInForce":{"$ref":"#/components/schemas/TimeInForceNullable","nullable":true},"expireTime":{"type":"string","format":"date-time","description":"Only exists for LIMIT orders","nullable":true},"clientOrderId":{"type":"string","format":"uuid","nullable":true},"fillPercentage":{"type":"string","format":"number"},"clientFeeRate":{"type":"string","format":"integer","nullable":true},"clientFeeAmount":{"type":"string","format":"number","description":"Fixed fiat fee amount in tenant native currency","nullable":true},"providerFeeRate":{"type":"string","format":"integer"},"placedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time","nullable":true},"clientReference":{"type":"string","nullable":true},"rejectedAt":{"type":"string","format":"date-time","nullable":true,"description":"Only exists for REJECTED orders"},"orderRejectReason":{"type":"string","description":"Only exists for REJECTED orders","nullable":true},"currency":{"type":"string"}}},"OrderStatus":{"type":"string","enum":["PLACED","FILLED","FAILED","CANCELED","PENDING_NEW","NEW","PARTIALLY_FILLED","REJECTED","PENDING_CANCEL","CANCEL_FAILED","EXPIRED"]},"OrderType":{"type":"string","enum":["MARKET","LIMIT","PREVIOUSLY_QUOTED"]},"TimeInForceNullable":{"allOf":[{"$ref":"#/components/schemas/TimeInForce"}],"nullable":true},"TimeInForce":{"type":"string","enum":["GTC","GTD","DAY"],"description":"Time in force should be DAY for market orders"}},"responses":{"400":{"description":"Validation Error"},"401":{"description":"Unauthorized"},"403":{"description":"Insufficient Privileges"},"4XX":{"description":"Client error"},"5XX":{"description":"Server error"}}},"paths":{"/v1/orders/{orderId}":{"get":{"summary":"GET Order","description":"Retrieve an order by its order ID.","tags":["Trading"],"parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The settlementId of the settlement"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"4XX":{"$ref":"#/components/responses/4XX"},"5XX":{"$ref":"#/components/responses/5XX"}},"operationId":"GetOneOrder"}}}}
```

## Create Order

> For orders to be accepted, the account must have sufficient buying power. Once placed, an amount equivalent to the maximum potential value of the order will be reserved from the account balance for the duration that the order remains open.

```json
{"openapi":"3.0.3","info":{"title":"Aquanow CAMS REST API","version":"1.0"},"servers":[{"url":"https://cams.aquanow.com/api","description":"production"},{"url":"http://localhost:3001/api","description":"local"},{"url":"https://cams.dev.aquanow.com/api","description":"dev"},{"url":"https://cams.staging.aquanow.com/api","description":"staging"},{"url":"https://cams.cert.aquanow.com/api","description":"cert"},{"url":"https://marketdata.aquanow.com","description":"production market data"},{"url":"https://marketdata.staging.aquanow.com","description":"staging market data"},{"url":"https://marketdata.dev.aquanow.com","description":"dev market data"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","scheme":"bearer"}},"parameters":{"X-Request-Id":{"name":"X-Request-Id","in":"header","required":false,"schema":{"type":"string"},"description":"A client-supplied unique identifier for this request, used for safely retrying and deduplicating operations. When the same X-Request-Id is sent with multiple identical requests within a defined time window, the server treats them as the same logical operation and will not perform the side effect more than once. Instead, it will return the original result associated with that identifier, if available. The client should generate a collision-resistant value (for example, a UUID) and reuse it only when retrying the same operation."}},"schemas":{"TimeInForce":{"type":"string","enum":["GTC","GTD","DAY"],"description":"Time in force should be DAY for market orders"},"ExecInst":{"title":"ExecInst","enum":["AON"],"description":"Execution instruction specifying how the order should be fulfilled."},"RFQResponseOrder":{"title":"RFQResponseOrder","type":"object","properties":{"orderId":{"type":"string","format":"uuid"},"accountId":{"type":"string","format":"uuid"},"orderStatus":{"$ref":"#/components/schemas/OrderStatus"},"side":{"type":"string"},"pair":{"type":"string"},"strategy":{"type":"string","enum":["RFQ"]},"orderPrice":{"type":"string","format":"number"},"orderQuantity":{"type":"string","format":"number"},"fillQuantity":{"type":"string","format":"number"},"fillPrice":{"type":"string","format":"number"},"fillPercentage":{"type":"string","format":"number"},"clientFeeRate":{"type":"string","format":"integer","nullable":true},"clientFeeAmount":{"type":"string","format":"number","description":"Fixed fiat fee amount in tenant native currency","nullable":true},"providerFeeRate":{"type":"string","format":"integer"},"placedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time","nullable":true},"clientReference":{"type":"string","nullable":true}}},"OrderStatus":{"type":"string","enum":["PLACED","FILLED","FAILED","CANCELED","PENDING_NEW","NEW","PARTIALLY_FILLED","REJECTED","PENDING_CANCEL","CANCEL_FAILED","EXPIRED"]},"Execution":{"title":"Execution","type":"object","properties":{"executionId":{"type":"string","format":"uuid"},"orderId":{"type":"string","format":"uuid"},"accountId":{"type":"string","format":"uuid"},"executedAt":{"type":"string","format":"date-time"},"pair":{"type":"string"},"side":{"type":"string"},"orderType":{"$ref":"#/components/schemas/OrderType"},"deliverCurrency":{"type":"string"},"deliverQuantity":{"type":"string"},"receiveCurrency":{"type":"string"},"receiveQuantity":{"type":"string"},"price":{"type":"string","format":"number"},"baseQuantity":{"type":"string","format":"number"},"quoteQuantity":{"type":"string","format":"number"},"clientFeeRate":{"type":"string","format":"integer","nullable":true},"clientFeeAmount":{"type":"string","format":"number","description":"Fixed fiat fee amount in tenant native currency","nullable":true},"providerFeeRate":{"type":"string","format":"integer"},"clientFeeQuantity":{"type":"string","format":"number"},"providerFeeQuantity":{"type":"string","format":"number"},"feeCurrency":{"type":"string"},"executionStatus":{"$ref":"#/components/schemas/ExecutionStatus"},"tradeDate":{"type":"string","format":"date"},"valueDate":{"type":"string","format":"date"},"confirmedAt":{"type":"string","format":"date-time","nullable":true},"clientReference":{"type":"string","nullable":true},"tradeTaxRate":{"type":"string","format":"number","description":"Tax rate charged on fees as a percentage"},"clientTaxQuantity":{"type":"string","format":"number"},"providerTaxQuantity":{"type":"string","format":"number"}}},"OrderType":{"type":"string","enum":["MARKET","LIMIT","PREVIOUSLY_QUOTED"]},"ExecutionStatus":{"type":"string","enum":["TRADE_EXECUTED","TRADE_CONFIRMED","TRADE_SETTLED"]},"TimeInForceNullable":{"allOf":[{"$ref":"#/components/schemas/TimeInForce"}],"nullable":true}},"headers":{"X-Request-Id":{"description":"Unique identifier for this request. If the client supplied X-Request-Id, the same value is returned.","schema":{"type":"string"}}},"responses":{"400":{"description":"Validation Error"},"401":{"description":"Unauthorized"},"403":{"description":"Insufficient Privileges"},"409":{"description":"Duplicate request error","content":{"application/json":{"schema":{"properties":{"id":{"type":"string"}}}}}},"4XX":{"description":"Client error"},"5XX":{"description":"Server error"}}},"paths":{"/v1/orders":{"post":{"summary":"Create Order","description":"For orders to be accepted, the account must have sufficient buying power. Once placed, an amount equivalent to the maximum potential value of the order will be reserved from the account balance for the duration that the order remains open.","tags":["Trading"],"parameters":[{"$ref":"#/components/parameters/X-Request-Id"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"title":"PreviouslyQuotedRequestBody","description":"Execute a previously requested quote. Creates an Order and Executes it. Retuns both the order and the execution.","required":["quoteId"],"properties":{"quoteId":{"type":"string","format":"uuid","description":"The quoteId returned by Request Quote"},"orderType":{"type":"string","enum":["PREVIOUSLY_QUOTED"]},"clientReference":{"type":"string"}}},{"title":"LimitOrderRequestBody","description":"Create a Limit Order","required":["orderType","accountId","timeInForce","execInst","pair","side","orderQuantity","currency","limitPrice"],"properties":{"orderType":{"type":"string","enum":["LIMIT"]},"accountId":{"type":"string","description":"Specifies the type of order being placed"},"clientOrderId":{"type":"string","description":"order id from client","nullable":true},"timeInForce":{"type":"string","$ref":"#/components/schemas/TimeInForce"},"expireTime":{"type":"string","description":"A timestamp in UTC that indicates when the order will expire. Required if 'timeInForce' is GTD"},"execInst":{"$ref":"#/components/schemas/ExecInst"},"pair":{"type":"string","description":"The trading pair for the order"},"side":{"type":"string","enum":["BUY","SELL"],"description":"Indicates the direction of the order"},"orderQuantity":{"type":"string","description":"The quantity of the asset being ordered"},"currency":{"type":"string","description":"Specifies the currency of the specified order quantity."},"limitPrice":{"type":"string","description":"The price at which a limit order is to be executed."},"clientReference":{"type":"string","description":"An optional freeform text field that clients can use to add additional notes or references to their order for internal tracking purposes."},"clientFeeRate":{"type":"string","description":"The fee rate applicable to the client order","nullable":true},"clientFeeAmount":{"type":"string","format":"number","description":"Fixed fiat fee amount in tenant native currency. If both clientFeeRate and clientFeeAmount are provided, clientFeeRate takes precedence.","nullable":true}}},{"title":"MarketOrderRequestBody","description":"Create a MARKET Order","required":["orderType","accountId","pair","side","orderQuantity","currency","execInst","timeInForce"],"properties":{"orderType":{"type":"string","enum":["MARKET"]},"accountId":{"type":"string","description":"Specifies the type of order being placed"},"clientOrderId":{"type":"string","format":"uuid","description":"order id from client"},"pair":{"type":"string","description":"The trading pair for the order"},"side":{"type":"string","enum":["BUY","SELL"],"description":"Indicates the direction of the order"},"orderQuantity":{"type":"string","description":"The quantity of the asset being ordered"},"currency":{"type":"string","description":"Specifies the currency of the specified order quantity."},"clientReference":{"type":"string","description":"An optional freeform text field that clients can use to add additional notes or references to their order for internal tracking purposes."},"clientFeeRate":{"type":"string","description":"The fee rate applicable to the client order","nullable":true},"clientFeeAmount":{"type":"string","format":"number","description":"Fixed fiat fee amount in tenant native currency. If both clientFeeRate and clientFeeAmount are provided, clientFeeRate takes precedence.","nullable":true},"execInst":{"$ref":"#/components/schemas/ExecInst"},"timeInForce":{"$ref":"#/components/schemas/TimeInForce"}}}],"type":"object"}}},"description":""},"responses":{"200":{"description":"Successful response","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"oneOf":[{"description":"Response for RFQ Orders","properties":{"order":{"$ref":"#/components/schemas/RFQResponseOrder"},"executions":{"type":"array","description":"The executions for the order, will only exist if an execution is created.","items":{"$ref":"#/components/schemas/Execution"}}}},{"description":"Response for MARKET and LIMIT Orders","properties":{"orderId":{"type":"string","format":"uuid"},"accountId":{"type":"string","format":"uuid"},"orderStatus":{"$ref":"#/components/schemas/OrderStatus"},"side":{"type":"string"},"pair":{"type":"string"},"orderQuantity":{"type":"string","format":"number"},"orderType":{"$ref":"#/components/schemas/OrderType"},"timeInForce":{"$ref":"#/components/schemas/TimeInForceNullable"},"clientOrderId":{"type":"string","format":"uuid","nullable":true},"clientFeeRate":{"type":"string","format":"integer","nullable":true},"clientFeeAmount":{"type":"string","format":"number","description":"Fixed fiat fee amount in tenant native currency","nullable":true},"providerFeeRate":{"type":"string","format":"integer"},"placedAt":{"type":"string","format":"date-time"},"clientReference":{"type":"string","nullable":true},"rejectedAt":{"type":"string","description":"Only exists for REJECTED orders","format":"date-time","nullable":true},"orderRejectReason":{"type":"string","description":"Only exists for REJECTED orders","nullable":true},"currency":{"type":"string"},"customerId":{"type":"string","format":"uuid"},"limitPrice":{"type":"string","description":"The price at which a limit order is to be executed for LIMIT orders.","nullable":true},"expiresAt":{"type":"string","format":"date-time","description":"Suggests when a LIMIT order will expire","nullable":true},"strategy":{"type":"string","enum":["MARKET","LIMIT","RFQ"],"nullable":true},"orderPrice":{"type":"string","description":"The price at which a LIMIT order was originally placed","nullable":true},"fillQuantity":{"type":"string","description":"The actual quantity of a LIMIT order that has been filled","nullable":true},"fillPrice":{"type":"string","description":"The average price of a LiMIT order that was executed.","nullable":true},"fillPercentage":{"type":"string","description":"The percentage of the total a LIMIT has been filled","nullable":true},"completedAt":{"type":"string","format":"date-time"},"execInst":{"type":"string","enum":["AON"],"description":"Execution instruction","nullable":false}}}],"type":"object"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"409":{"$ref":"#/components/responses/409"},"4XX":{"$ref":"#/components/responses/4XX"},"5XX":{"$ref":"#/components/responses/5XX"}},"operationId":"ExecuteQuote"}}}}
```

## Execute a Quote (RFQ)

> Execute a previously requested quote. Creates an Order and Executes it. Retuns both the order and the execution.

```json
{"openapi":"3.0.3","info":{"title":"Aquanow CAMS REST API","version":"1.0"},"servers":[{"url":"https://cams.aquanow.com/api","description":"production"},{"url":"http://localhost:3001/api","description":"local"},{"url":"https://camsapi-dev.aquanow.com/api","description":"dev"},{"url":"https://camsapi-staging.aquanow.com/api","description":"staging"},{"url":"https://cams.cert.aquanow.com/api","description":"cert"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","scheme":"bearer"}},"schemas":{"Order":{"title":"Order","type":"object","properties":{"orderId":{"type":"string","format":"uuid"},"accountId":{"type":"string","format":"uuid"},"orderStatus":{"$ref":"#/components/schemas/OrderStatus"},"side":{"type":"string"},"pair":{"type":"string"},"strategy":{"type":"string","enum":["RFQ"]},"orderPrice":{"type":"string","format":"number"},"orderQuantity":{"type":"string","format":"number"},"fillQuantity":{"type":"string","format":"number"},"fillPrice":{"type":"string","format":"number"},"fillPercentage":{"type":"string","format":"number"},"clientFeeRate":{"type":"string","format":"integer"},"providerFeeRate":{"type":"string","format":"integer"},"placedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time","nullable":true},"clientReference":{"type":"string","nullable":true}}},"OrderStatus":{"type":"string","enum":["PLACED","FILLED","FAILED","CANCELED"]},"Execution":{"title":"Execution","type":"object","properties":{"executionId":{"type":"string","format":"uuid"},"orderId":{"type":"string","format":"uuid"},"accountId":{"type":"string","format":"uuid"},"executedAt":{"type":"string","format":"date-time"},"pair":{"type":"string"},"side":{"type":"string"},"deliverCurrency":{"type":"string"},"deliverQuantity":{"type":"string"},"receiveCurrency":{"type":"string"},"receiveQuantity":{"type":"string"},"price":{"type":"string","format":"number"},"baseQuantity":{"type":"string","format":"number"},"quoteQuantity":{"type":"string","format":"number"},"clientFeeRate":{"type":"string","format":"integer"},"providerFeeRate":{"type":"string","format":"integer"},"clientFeeQuantity":{"type":"string","format":"number"},"providerFeeQuantity":{"type":"string","format":"number"},"feeCurrency":{"type":"string"},"executionStatus":{"$ref":"#/components/schemas/ExecutionStatus"},"tradeDate":{"type":"string","format":"date"},"valueDate":{"type":"string","format":"date"},"confirmedAt":{"type":"string","format":"date-time","nullable":true},"clientReference":{"type":"string","nullable":true},"tradeTaxRate":{"type":"string","format":"number","description":"Tax rate charged on fees as a percentage"},"clientTaxQuantity":{"type":"string","format":"number"},"providerTaxQuantity":{"type":"string","format":"number"}}},"ExecutionStatus":{"type":"string","enum":["TRADE_EXECUTED","TRADE_CONFIRMED","TRADE_SETTLED"]}},"responses":{"400":{"description":"Validation Error"},"401":{"description":"Unauthorized"},"403":{"description":"Insufficient Privileges"},"4XX":{"description":"Client error"},"5XX":{"description":"Server error"}}},"paths":{"/v1/orders":{"post":{"summary":"Execute a Quote (RFQ)","description":"Execute a previously requested quote. Creates an Order and Executes it. Retuns both the order and the execution.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string","format":"uuid","description":"The quoteId returned by Request Quote"},"clientReference":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/Order"},"executions":{"type":"array","items":{"$ref":"#/components/schemas/Execution"}}}}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"4XX":{"$ref":"#/components/responses/4XX"},"5XX":{"$ref":"#/components/responses/5XX"}},"operationId":"ExecuteQuote"}}}}
```

## Cancel an Order (WIP)

> Cancel a LIMIT order in NEW status

```json
{"openapi":"3.0.3","info":{"title":"Aquanow CAMS REST API","version":"1.0"},"servers":[{"url":"https://cams.aquanow.com/api","description":"production"},{"url":"http://localhost:3001/api","description":"local"},{"url":"https://camsapi-dev.aquanow.com/api","description":"dev"},{"url":"https://camsapi-staging.aquanow.com/api","description":"staging"},{"url":"https://cams.cert.aquanow.com/api","description":"cert"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","scheme":"bearer"}},"schemas":{"OrderStatus":{"type":"string","enum":["PLACED","FILLED","FAILED","CANCELED","PENDING_NEW","NEW","PARTIALLY_FILLED","REJECTED","PENDING_CANCEL","CANCEL_FAILED","EXPIRED"]}},"responses":{"401":{"description":"Unauthorized"},"403":{"description":"Insufficient Privileges"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"properties":{"id":{"type":"string"}}}}}},"4XX":{"description":"Client error"},"5XX":{"description":"Server error"}}},"paths":{"/v1/orders/{orderId}":{"delete":{"summary":"Cancel an Order (WIP)","tags":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["orderId","orderStatus"],"properties":{"orderId":{"type":"string"},"orderStatus":{"$ref":"#/components/schemas/OrderStatus"}}}}}},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"4XX":{"$ref":"#/components/responses/4XX"},"5XX":{"$ref":"#/components/responses/5XX"}},"operationId":"CancelOrder","description":"Cancel a LIMIT order in NEW status"}}}}
```
