Commit 1ec1cd85 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 233c3ef9
......@@ -66,7 +66,7 @@ async function init() {
let header='RowNum,PPST1_stMnBarAge,PPST1_PvtPtPeriod,PPST1_AtrFactor,PPST1_AtrPeriod,szOmIdName\n'
for (let i=0;i<arr.length;i++)
{
let qty=(i+1)*0.001
let qty=(i+5)*0.001
let inline=(i+1)+','+arr[i].timeframe+','+arr[i].pvt+','+arr[i].factor+','+arr[i].period+','+arr[i].uniq+'_'+qty
header=header+inline
if (i !== arr.length-1)
......
......@@ -32,22 +32,12 @@ async function init() {
async function test () {
let d = exchange.createMarketOrder('ETHUSDT', 'Sell', 0.01, 0, {order_link_id: 'id1_Sell_1012.05.24 21:34'})
// console.log('Add Suc With id',sig)
console.log(d)
if (typeof d.id !== "undefined") {
console.log('Add Suc With id', d.id, 'sell')
const [add] = await client
.multi()
.set('sell', JSON.stringify({qty: 0.1}))
.exec();
// log (asTable (orders.map (order => ccxt.omit (order, [ 'timestamp', 'info' ]))))
// const order = await exchange.fetchOrder (orders[0]['id'])
// let d = await exchange.createMarketOrder('ETHUSDT', 'Buy', 0.05, 0)
let s=await exchange.fetchOrders('ETHUSDT')
console.log(s)
// console.log('Add Suc With id',sig)
//console.log(d)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment