New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

btcc-signed-request

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

btcc-signed-request

BTCC Signed Request Generator

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

install

npm install git@github.com:wenqingyu/btcc-signed-request.git --save

How to use

This package is used for sign most of BTCC Request trough and websocket request.

import

const BTCCSignedRequest = require('btcc-signed-request');

initialize

let msgType = "CancelOrderRequest";
let yields = {
    Symbol: "XBTCNY",
    OID: "YourCancelOrderID"
}
let operatorAccount = "23892";
let operatorAccountKey = "2324sx-23sd-23sd-2sdfsgf-23r2";
// Try to get your account info in browser inspect element

create request json data

// Generate DepositRequest
let reqData = BTCCSignedRequest.createSignedRequest(msgType, fields,
  {account: operatorAccount, accountKey: operatorAccountKey}
);
console.log(reqData);
// send request by websocket or restful request depends on your project

Keywords

BTCC

FAQs

Package last updated on 07 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts