Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ai
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
ai
Commits
1ec1cd85
Commit
1ec1cd85
authored
May 31, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git pu
parent
233c3ef9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
16 deletions
+6
-16
grab.js
grab.js
+1
-1
test_ccxt.js
test_ccxt.js
+5
-15
No files found.
grab.js
View file @
1ec1cd85
...
...
@@ -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
)
...
...
test_ccxt.js
View file @
1ec1cd85
...
...
@@ -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)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment