Open javedwahid opened 6 days ago
I'm not sure if I understand right. OKX Place Order endpoint returns a response as below
{
"code": "0",
"msg": "",
"data": [
{
"clOrdId": "oktswap6",
"ordId": "312269865356374016",
"tag": "",
"ts":"1695190491421",
"sCode": "0",
"sMsg": ""
}
],
"inTime": "1695190491421339",
"outTime": "1695190491423240"
}
OKX.Api shows you data array part of this message only. If you mean "why this reponse model is limited?" this is all OKX response. If you mean you cant see any part of "data" please enable rawresponse and send me raw data as below.
var api = new OkxRestApiClient(new OkxRestApiOptions
{
RawResponse = true,
});
var trade = await api.Trading.PlaceOrderAsync(...)
// send me trade.Raw property value
Have a great day
When I would call the method, it would return, but without providing the Order Id. Then when I checked my OKX account, the order wasn't showing there.
I will do the RawResponse and get that information for you along with a screenshot.
When I create an new OkxTradeOrderPlaceRequest() and populate the AttachedAlgoOrders property with an OkxTradeOrderPlaceAttachedAlgoRequest.
The Order doesn't go through and all that is returned is the OkxTradeOrderPlaceResponse that says Success = True.
I populated the TakeProfitTriggerPrice, TakeProfitOrderPrice and Size and other variations of properties and none of them actually placed an order.