Skip to content

Commit b6d85f7

Browse files
authored
Merge pull request #8 from sieblyio/update11082026
feat(v1.0.1): sync HTX API changelog since May
2 parents 1ad19e2 + fdc5eae commit b6d85f7

13 files changed

Lines changed: 10053 additions & 7806 deletions

File tree

docs/endpointFunctionList.md

Lines changed: 113 additions & 111 deletions
Large diffs are not rendered by default.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { SpotClient } from '@siebly/htx-api';
2+
// or, if require is preferred:
3+
// const { SpotClient } = require('@siebly/htx-api');
4+
5+
// This example shows how to call this HTX API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "@siebly/htx-api" for HTX exchange
6+
// This HTX API SDK is available on npm via "npm install @siebly/htx-api"
7+
// ENDPOINT: /v5/account/universal_transfer_records
8+
// METHOD: GET
9+
// PUBLIC: NO
10+
11+
const client = new SpotClient({
12+
apiKey: 'insert_api_key_here',
13+
apiSecret: 'insert_api_secret_here',
14+
});
15+
16+
client.getUniversalTransferRecords(params)
17+
.then((response) => {
18+
console.log(response);
19+
})
20+
.catch((error) => {
21+
console.error(error);
22+
});
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { SpotClient } from '@siebly/htx-api';
2+
// or, if require is preferred:
3+
// const { SpotClient } = require('@siebly/htx-api');
4+
5+
// This example shows how to call this HTX API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "@siebly/htx-api" for HTX exchange
6+
// This HTX API SDK is available on npm via "npm install @siebly/htx-api"
7+
// ENDPOINT: /v5/account/universal_transfer
8+
// METHOD: POST
9+
// PUBLIC: NO
10+
11+
const client = new SpotClient({
12+
apiKey: 'insert_api_key_here',
13+
apiSecret: 'insert_api_secret_here',
14+
});
15+
16+
client.submitUniversalTransfer(params)
17+
.then((response) => {
18+
console.log(response);
19+
})
20+
.catch((error) => {
21+
console.error(error);
22+
});

0 commit comments

Comments
 (0)