phemex-api-node

1.0.1 • Public • Published

phemex-api client for nodejs

This is an unofficial Phemex rest client for NodeJS.

Install Guide

npm install phemex-api

Phemex Requirements

First step is to generate API credentials make sure you're logged in then you have to enable two factor.

Usage

const { PhemexClient } = require("phemex-client");

const ApiKey = "8edcdf78-e41f-49ce-8a3f-***********";
const apiSecret = "mADsvO3AKv2W6Tf32HLb1aOR6VGLyV5EavGcigjVn5oxMTUwOWFjYy03OGJjLTRh**************";

const client = new PhemexClient(ApiKey, apiSecret);

client.QueryRecentTrades({symbol: "BTCUSD"})
  .then(result => console.log(result))
  .catch(err => console.error(error));

This is the Official Phemex Documentation for all the information on endpoints and what params they require/have.

Todo

Finish adding endpoints. Add Web socket support.

Readme

Keywords

none

Package Sidebar

Install

npm i phemex-api-node

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

14.5 kB

Total Files

9

Last publish

Collaborators

  • gorgev