npm install jcc_exchange
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
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
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