Skip to content

zhouhu1986/JCCDex-jcc_exchange

Repository files navigation

jcc_exchange

npm Build Status Coverage Status npm downloads

Installtion

npm install jcc_exchange

API

createOrder

const createOrder = require('jcc_exchange').createOrder
// import { createOrder } from 'jcc_exchange';
createOrder(obj).then(() => {}).catch(error => {})

Parameters

obj- object

  • counter- string
  • base- string
  • issuer- string
  • address- string
  • type- number -> 0: buy, 1: sell
  • amount- string | number
  • sum- string | number
  • secret- string
  • hosts- array
  • port- number
  • https- boolean

cancelOrder

const cancelOrder = require('jcc_exchange').cancelOrder
// import { cancelOrder } from 'jcc_exchange';
createOrder(obj).then(() => {}).catch(error => {})

Parameters

obj- object

  • address- string
  • offerSequence- number
  • secret- string
  • hosts- array
  • port- number
  • https- boolean

transferAccount

const transferAccount = require('jcc_exchange').transferAccount
// import { transferAccount } from 'jcc_exchange';
transferAccount(obj).then(() => {}).catch(error => {})

Parameters

obj- object

  • currency- string
  • amount- string
  • address- string
  • secret- string
  • to- string
  • issuer- string
  • memo- string
  • hosts- array
  • port- number
  • https- boolean

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published