@altangent/lib-coinbase
Advanced tools
Comparing version 0.10.0 to 0.10.1
{ | ||
"name": "@altangent/lib-coinbase", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "Coinbase API client", | ||
@@ -27,3 +27,3 @@ "author": "Brian Mancini <bmancini@gmail.com>", | ||
"dependencies": { | ||
"@altangent/lib-http": "^0.10.0" | ||
"@altangent/lib-http": "^0.10.1" | ||
}, | ||
@@ -33,3 +33,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "3a97f77d3e45056ad90da16ecaaf4d3a367fd56c" | ||
"gitHead": "10d80a02d731c7add869af44d1027703abff687b" | ||
} |
17
test.ts
@@ -1,7 +0,1 @@ | ||
// API Key: IvR4b7GmIv1Qzi6W | ||
// API Secret: x7Dgfc3WybLGSLO1gA35141pKZnCHUxI | ||
// curl https://api.coinbase.com/v2/accounts/2bbf394c-193b-5b2a-9155-3b4732659ede/transactions / | ||
// -H 'Authorization: Bearer abd90df5f27a7b170cd775abf89d632b350b7c1c9d53e08b340cd9832ce52c2c' | ||
import { request } from "@altangent/lib-http"; | ||
@@ -13,8 +7,13 @@ import crypto from "crypto"; | ||
const key = "xjOGCPmvkDRSrvck"; | ||
const keysecret = "w9TWdZEW6PHWWNpdIUXo8BzNNPmeZ61X"; | ||
const key = process.env.CB_KEY; | ||
const keysecret = process.env.CB_SECRET; | ||
const accountid = process.env.CB_ACCOUNTID; | ||
console.log("key", key); | ||
console.log("secret", keysecret); | ||
console.log("account", accountid); | ||
const timestamp = Math.floor(new Date().getTime() / 1000); | ||
const method = "GET"; | ||
const path = "/v2/accounts/0e795055-823f-5dd0-9010-deb823088912"; | ||
const path = `/v2/accounts/${accountid}`; | ||
// const path = "/v2/accounts?limit=100"; | ||
@@ -21,0 +20,0 @@ const body = ""; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22974
Updated@altangent/lib-http@^0.10.1