0.1.0 • Published 2 months ago

apexpro-connector-node v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Installation

yarn add apexpro-connector-node
npm install apexpro-connector-node

Environment

// QA
let apexClient:ApexClient = new ApexClient(QA);

// PROD
let apexClient:ApexClient = new ApexClient(PROD);

Public Api Example

Please refer to public api

let apexClient:ApexClient = new ApexClient(PROD);
console.log(await apexClient.publicApi.time())
console.log(await apexClient.publicApi.symbols())
console.log(await apexClient.publicApi.depth('BTCUSDC'))
console.log(await apexClient.publicApi.trades('BTCUSDC'))
console.log(await apexClient.publicApi.klines('BTCUSDC', '1'))
console.log(await apexClient.publicApi.tickers('BTCUSDC'))
console.log(await apexClient.publicApi.historyFunding('BTC-USDC'))
console.log(await apexClient.publicApi.checkUserExist('0x0000000000000000000000000000000000000000'))   

Private Api Example

Please refer to private api

let apexClient:ApexClient = new ApexClient(PROD);
const apiKeyCredentials: ApiKeyCredentials = {
  key: 'api key',
  passphrase: ' passphrase ',
  secret: ' secret',
};
const startPrivateKey: string = 'start Private Key';
const accountId: string = 'your account id';
await apexClient.init(apiKeyCredentials, startPrivateKey, accountId);
0.1.0

2 months ago

0.0.9

3 months ago

0.0.8-beta1

6 months ago

0.0.8

6 months ago

0.0.7

7 months ago

0.0.5

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.1

1 year ago