Paymium / api-documentation

Documentation for Paymium API v1
https://www.paymium.com
MIT License
9 stars 5 forks source link

Modify snippet for javascript on Create price alerts api endpoint #28

Closed Alexterieur0 closed 1 year ago

Alexterieur0 commented 1 year ago

Here is a working request samples :

'use strict'; const ccxt = require ('ccxt');

(async function () { let paymium = new ccxt.paymium({ apiKey: '8c7ca9e68517542a73c6ff3fadbacdaab22cd076cdaf7e3f85335627c891b43f', secret: '945a0bea1def3a5f0a265cd73f18450aaf2e21caeeba5eb1935a141bd8bb86be', })

console.log(paymium.id, await paymium.privatePostUserPriceAlerts({ "token": "b79346ed-244d-42b0-8009-9f443e4b6862", "notify_above": "60000", "notify_below": "40000" })) })();