Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
224 changes: 113 additions & 111 deletions docs/endpointFunctionList.md

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions examples/apidoc/SpotClient/getUniversalTransferRecords.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { SpotClient } from '@siebly/htx-api';
// or, if require is preferred:
// const { SpotClient } = require('@siebly/htx-api');

// 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
// This HTX API SDK is available on npm via "npm install @siebly/htx-api"
// ENDPOINT: /v5/account/universal_transfer_records
// METHOD: GET
// PUBLIC: NO

const client = new SpotClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getUniversalTransferRecords(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
22 changes: 22 additions & 0 deletions examples/apidoc/SpotClient/submitUniversalTransfer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { SpotClient } from '@siebly/htx-api';
// or, if require is preferred:
// const { SpotClient } = require('@siebly/htx-api');

// 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
// This HTX API SDK is available on npm via "npm install @siebly/htx-api"
// ENDPOINT: /v5/account/universal_transfer
// METHOD: POST
// PUBLIC: NO

const client = new SpotClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.submitUniversalTransfer(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Loading