Rest API
Generating a Signature for API Requests
Before making a call to the Nami API, you need to generate a signature using your API secret. The signature ensures the integrity and authenticity of your request. Follow the steps below to generate the signature in JavaScript:
Add Timestamp: Generate a timestamp to include in your request parameters.
Prepare the Query String: Convert the parameters object to a query string.
Generate the Signature: Use the CryptoJS library or any other library to generate an HMAC SHA-256 signature using your query string and API secret.
Set the Signature in Environment Variables:
Dive into the specifics of each API endpoint by checking out our complete documentation.
Create OrderClose OrderClose All OrderGet Order OpenGet Order HistoryGet Order Trade HistoryGet 24h ticker priceGet Market DepthIf you receive an error, please check the table below to understand the error code and its meaning
Last updated