0.2.0 • Published 5 months ago

apexpro-connector-node v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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.2.0-alpha.12

5 months ago

0.2.0

5 months ago

0.2.0-alpha.11

8 months ago

0.2.0-alpha.10

8 months ago

0.2.0-alpha.9

9 months ago

0.2.0-alpha.8

9 months ago

0.2.0-alpha.7

9 months ago

0.2.0-alpha.1-fix

9 months ago

0.2.0-alpha.2

9 months ago

0.2.0-alpha.1

9 months ago

0.2.0-alpha.4

9 months ago

0.2.0-alpha.3

9 months ago

0.2.0-alpha.6

9 months ago

0.2.0-alpha.5

9 months ago

0.1.0

1 year ago

0.0.9

1 year ago

0.0.8-beta1

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.5

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.1

2 years ago