Closed overstartup closed 1 year ago
You can simply set DemoTradingService=true in OkxRestApiClientOptions
it doesn't solve the issue. Because it still set wrong order size. The support told me it needs the header to return correct data for demo version.
DemoTradingService=true adds header parameter
i had chat with okx api developers. it seems we missed the header to get demo data. They asked me to change this header:
Add to request header。x-simulated-trading: 1
The check was for this endpoint, but I don't know if you need to add it for others too.
api.PublicData.GetInstrumentsAsync(...);