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
07aa862f
Commit
07aa862f
authored
Jun 21, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git pull
parent
55fb94e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
change2.js
change2.js
+4
-4
tor.js
tor.js
+1
-1
No files found.
change2.js
View file @
07aa862f
...
@@ -40,7 +40,7 @@ async function init() {
...
@@ -40,7 +40,7 @@ async function init() {
})
})
exchange
.
urls
[
'
api
'
]
=
exchange
.
urls
[
'
test
'
];
// exchange.urls['api'] = exchange.urls['test'];
run
()
run
()
balanceUpdater
()
balanceUpdater
()
...
@@ -287,8 +287,8 @@ async function closer(sig, date, bigData, id, pair) {
...
@@ -287,8 +287,8 @@ async function closer(sig, date, bigData, id, pair) {
lastToken
=
lastToken
.
replace
(
/_/g
,
''
).
replace
(
/Lp/g
,
''
).
replace
(
/BTC/g
,
''
).
replace
(
/ /g
,
''
)
lastToken
=
lastToken
.
replace
(
/_/g
,
''
).
replace
(
/Lp/g
,
''
).
replace
(
/BTC/g
,
''
).
replace
(
/ /g
,
''
)
const
[
data
,
delStatus
]
=
await
client
const
[
data
,
delStatus
]
=
await
client
.
multi
()
.
multi
()
.
get
(
info
.
apiKey
+
sig
)
.
get
(
info
.
apiKey
+
'
_
'
+
sig
)
.
del
(
info
.
apiKey
+
sig
)
.
del
(
info
.
apiKey
+
'
_
'
+
sig
)
.
exec
();
.
exec
();
...
@@ -375,7 +375,7 @@ async function adder(sig, qty, date, allData,pair) {
...
@@ -375,7 +375,7 @@ async function adder(sig, qty, date, allData,pair) {
console
.
log
(
'
Add Suc With id
'
,
d
.
id
,
sig
)
console
.
log
(
'
Add Suc With id
'
,
d
.
id
,
sig
)
const
[
add
]
=
await
client
const
[
add
]
=
await
client
.
multi
()
.
multi
()
.
set
(
info
.
apiKey
+
sig
,
JSON
.
stringify
({
pair
:
d
.
info
.
symbol
,
side
:
d
.
side
,
qty
:
d
.
amount
,
price
:
d
.
price
}))
.
set
(
info
.
apiKey
+
'
_
'
+
sig
,
JSON
.
stringify
({
pair
:
d
.
info
.
symbol
,
side
:
d
.
side
,
qty
:
d
.
amount
,
price
:
d
.
price
}))
.
exec
();
.
exec
();
}
}
...
...
tor.js
View file @
07aa862f
...
@@ -161,7 +161,7 @@ async function run()
...
@@ -161,7 +161,7 @@ async function run()
dates
[
i
].
balance
=
balance
dates
[
i
].
balance
=
balance
}
}
arrDate
=
_
.
orderBy
(
arrDate
,
[
'
sum
'
])
arrDate
=
_
.
orderBy
(
arrDate
,
[
'
sum
'
])
console
.
log
(
dates
)
console
.
log
(
arrNew
)
console
.
log
(
'
Balance ->
'
,
balance
-
lastBalance
)
console
.
log
(
'
Balance ->
'
,
balance
-
lastBalance
)
let
worth
=
(
balance
-
lastBalance
)
/
(
arrDate
[
0
].
sum
)
let
worth
=
(
balance
-
lastBalance
)
/
(
arrDate
[
0
].
sum
)
console
.
log
(
'
Worth ->
'
,
worth
)
console
.
log
(
'
Worth ->
'
,
worth
)
...
...
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