chore(): updated examples

This commit is contained in:
JJ-Cro
2025-04-28 12:39:10 +02:00
parent bb33ca3dc7
commit 0599ce89e0
5 changed files with 24 additions and 0 deletions

View File

@@ -7,6 +7,10 @@ import { RestClientV2 } from '../src/index';
const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM;
const API_PASS = process.env.API_PASS_COM;
// If running from CLI in unix, you can pass env vars as such:
// API_KEY_COM=lkm12n3-2ba3-1mxf-fn13-lkm12n3a API_SECRET_COM='035B2B9637E1BDFFEE2646BFBDDB8CE4' API_PASSPHRASE_COM='ComplexPa$$!23$5^' ts-node examples/rest-private-spot.ts
// note the single quotes, preventing special characters such as $ from being incorrectly passed
const client = new RestClientV2({
apiKey: API_KEY,