Hi!
I’m currently trying to implement the different CreateOrder types and market order worked right away. I’m stuck with LimitLimitGtc orders right now though…
This is the layout of the json message i’m sending to the server:
{
"client_order_id": "myId",
"product_id": "ADA-EUR",
"side": "SELL",
"order_configuration": {
"limit_limit_gtc": {
"base_size": "2.0",
"limit_price": "0.5",
"post_only": false
}
}
}
This is the server response:
tatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Date: Tue, 15 Aug 2023 13:00:43 GMT
Connection: keep-alive
Access-Control-Allow-Headers: Content-Type, Accept, Second-Factor-Proof-Token, Client-Id, Access-Token, X-Cb-Project-Name, X-Cb-Is-Logged-In, X-Cb-Platform, X-Cb-Session-Uuid, X-Cb-Pagekey, X-Cb-Ujs, Fingerprint-Tokens, X-Cb-Device-Id, X-Cb-Version-Name
Access-Control-Allow-Methods: GET,POST,DELETE,PUT
Access-Control-Allow-Private-Network: true
Access-Control-Expose-Headers:
Access-Control-Max-Age: 7200
Cache-Control: no-store
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Trace-Id: 812646599494551174
Trace-Id: 812646599494551174
Vary: Origin
X-Content-Type-Options: nosniff
X-Dns-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
CF-Cache-Status: DYNAMIC
Server: cloudflare
CF-RAY: 7f719f3fe997267d-TXL
Content-Type: application/json; charset=utf-8
Content-Length: 382
}
{"success":true,
"failure_reason":"UNKNOWN_FAILURE_REASON",
"order_id":"13ea4eef-xxx",
"success_response":{
"order_id":"13ea4eef-xxx",
"product_id":"ADA-EUR",
"side":"SELL",
"client_order_id":"eee-aaa"
},
"order_configuration":{
"limit_limit_gtc":{
"base_size":"2.0",
"limit_price":"0.5",
"post_only":false}}}
So far i got all endpoints in Accounts and Products to work properly, but with me getting a positive Status code here it’s difficult to bugfix.
Any help or pointers in the right direction are highly appreciated, thanks!
Kawa
Edit: Implemented GetOrder, turns out the success message keeps sending back the trade id from the test spot trade i made last night. I double checked i’m sending the json message from above… no idea what’s going on.
Interestingly the response message correctly returns the limit trade data object i passed in.