CCXT library and authentication

Hey Team,

I’m trying to setup CCXT library to expediate development in .Net 8 for POC. I’m using NuGet Gallery | ccxt 4.4.99 package.

I tried to setup things and just for now exploring demo account where I have generated api-key and secret, and have valid permission to trade.

Authentication required APIs doesn’t work at my end and mostly getting 403 or 401 status codes. For these I followed API docs along with authentication article. But still don’t know what I’m missing. Below is different things I tried:

Above things seems to be okay but I think it’s signature is expired, because I think, request time isn’t current time. I tried to prepare and pass same things in C# without using ccxt library but still no luck. Also, does this nuget package setup required explicit signature, timestamp etc as mentioned in article link? Also, does secret is signature in this? Please guide me how to do this in .Net using ccxt library or custom code?

Further improvement suggestion, would you please document this it in more descripted and actionable manner how we should do it in you APIs doc so that it is easy for everybody to follow.

Have a great day!

1 Like

Your requests are returned with http status code 403 if the request headers might be missing User-Agent . It could be also due to the IP of the machine from where you run the script, is not coming into the request. If not so, please log and share the entire response headers with us.

For 401 status codes, please check the response text thoroughly. From the shared screenshot, the request time is behind more than 5 seconds with the server time that results into expired signature error. Postman simulation is tricky since the time difference should not be more than 5 seconds so, please try with the script only.

No, secret is not signature rather is api secret that you get along with api key when you create it on Delta exchange. You can create signature using api secret from the Delta api docs: Delta Exchange Api