WebApi

<back to all web services

UpdateOrderDeprecated

Update exchange order

The following routes are available for this service:
POST, OPTIONS/Order/Update
UpdateOrderDeprecated Parameters:
NameParameterData TypeRequiredDescription
AuthorizationheaderstringYesAuthorization token in the form "Bearer your_token_here"
OrderbodyOrderYes
Order Parameters:
NameParameterData TypeRequiredDescription
ClientIdformstringNo
OrderIdformstringNo
TimestampformDateTimeNo
InstformInstrumentNo
ExchangeformExchangeNameNo
CurrencyPairformCurrencyPairNo
TypeformOrderTypeNo
SideformOrderSideNo
StatusformOrderStatusNo
PriceformdecimalNo
QuantityformdecimalNo
RemainingformdecimalNo
FilledformdecimalNo
SessionIdformstringNo
SessionSubIdformstringNo
LastTradeTimestampformDateTime?No
FillsformList<MarketDepthItem>No
CostformdecimalNo
Instrument Parameters:
NameParameterData TypeRequiredDescription
SymbolformCurrencyPairNo
ExchangeformExchangeNameNo
CurrencyPair Parameters:
NameParameterData TypeRequiredDescription
BaseformCurrencyNo
QuoteformCurrencyNo
NameformstringNo
Currency Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
MarketDepthItem Parameters:
NameParameterData TypeRequiredDescription
PriceformdecimalNo
QuantityformdecimalNo
TimestampformDateTimeNo
SideformOrderSideNo
UIRequest Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
CommandformUICommandNo
ProcessedformboolNo
SuccessformboolNo
MessageformstringNo
CreatedTimestampformDateTimeNo
ProcessedTimestampformDateTimeNo
DataformOrderNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Order/Update HTTP/1.1 
Host: burntrouter.info 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Authorization":"String","Order":{"ClientId":"String","OrderId":"String","Timestamp":"\/Date(-62135596800000)\/","Exchange":null,"Type":"Market","Side":"Buy","Status":"New","Price":0,"Quantity":0,"Remaining":0,"Filled":0,"SessionId":"String","SessionSubId":"String","LastTradeTimestamp":"\/Date(-62135596800000)\/","Fills":[{}],"Cost":0}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Id":"String","Command":"NewOrder","Processed":false,"Success":false,"Message":"String","CreatedTimestamp":"\/Date(-62135596800000)\/","ProcessedTimestamp":"\/Date(-62135596800000)\/","Data":{"ClientId":"String","OrderId":"String","Timestamp":"\/Date(-62135596800000)\/","Exchange":null,"Type":"Market","Side":"Buy","Status":"New","Price":0,"Quantity":0,"Remaining":0,"Filled":0,"SessionId":"String","SessionSubId":"String","LastTradeTimestamp":"\/Date(-62135596800000)\/","Fills":[{}],"Cost":0}}