-
-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Data is null (but should not be, since this is batch request, each entry can return different error code and so on).
Although OKXOrderPlaceResponse has Code, Message
{
"code":"1",
"data":[
{
"clOrdId":"1425d83a94fbBCDEJKSpB3MVWDCky8bT",
"ordId":"",
"sCode":"51000",
"sMsg":"Parameter sz error",
"tag":"1425d83a94fbBCDE",
"ts":"1742064981369"
},
{
"clOrdId":"1425d83a94fbBCDEJKwEtqOqCUU6auai",
"ordId":"",
"sCode":"51001",
"sMsg":"Instrument ID doesn't exist.",
"tag":"1425d83a94fbBCDE",
"ts":"1742064981369"
}
],
"inTime":"1742064981369740",
"msg":"",
"outTime":"1742064981369984"
}OKX.Net/OKX.Net/Clients/UnifiedApi/OKXRestClientUnifiedApiTrading.cs
Lines 170 to 175 in 86e53eb
| var detailed = result.Data.Data.FirstOrDefault(x => !x.Success); | |
| if (detailed != null) | |
| return result.AsError<IEnumerable<OKXOrderPlaceResponse>>(new OKXRestApiError(detailed.Code, detailed.Message, null)); | |
| return result.AsError<IEnumerable<OKXOrderPlaceResponse>>(new OKXRestApiError(result.Data.ErrorCode, result.Data.ErrorMessage!, null)); | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
