preidman-ccxt
Advanced tools
Comparing version 1.18.194 to 1.18.195
@@ -412,3 +412,16 @@ 'use strict'; | ||
return ord | ||
let res = {} | ||
if (ord['status'] === 'OrderAccepted') { | ||
res = ord['message'] | ||
res['side'] = res['orderType'] | ||
res['price'] = res['price'] / 10 ** (8 + marketPrecision - assetPrecision) | ||
res['amount'] = res['amount'] / 10 ** (8 + marketPrecision - assetPrecision) | ||
res['symbol'] = symbol | ||
res['status'] = 'OK' | ||
} else { | ||
res['status'] = 'ERR' | ||
res['message'] = ord | ||
} | ||
return res | ||
} | ||
@@ -415,0 +428,0 @@ |
{ | ||
"name": "preidman-ccxt", | ||
"version": "1.18.194", | ||
"version": "1.18.195", | ||
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 100+ exchanges", | ||
@@ -5,0 +5,0 @@ "main": "./ccxt.js", |
Sorry, the diff of this file is not supported yet
7367923
144939