Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Crypto
/
Crypto-auto-trading
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
2019102152 김다빈
2021-12-07 03:57:17 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cc52d853962670bfb4c72db2cd14ce7b708b9227
cc52d853
1 parent
dfa81748
Modify trading_notice parameter
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
index.js
index.js
View file @
cc52d85
...
...
@@ -174,7 +174,7 @@ async function transaction_coin(coin_name, side, volume, price, ord_type, first
console
.
log
(
avg_buy_price
);
lookup_order
(
result
.
uuid
,
avg_buy_price
,
market
);
}
else
{
lookup_order
(
result
.
uuid
);
lookup_order
(
result
.
uuid
,
0
,
market
);
}
if
(
side
==
"bid"
)
{
if
(
first
)
{
...
...
@@ -422,7 +422,7 @@ function lookup_order(uuid,avg_buy_price=0,market="") {
})
return
;
}
function
trading_notice
(
side
,
price
,
funds
,
volume
,
yield_data
=
0
,
market
=
""
)
{
function
trading_notice
(
side
,
price
,
funds
,
volume
,
yield_data
=
0
,
market
)
{
var
messages
=
new
Array
();
if
(
side
==
"bid"
)
{
messages
.
push
({
"type"
:
"text"
,
"text"
:
"매수 주문이 체결되었습니다."
});
...
...
Please
register
or
login
to post a comment