Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
ts-api-demo
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
wmvm
ts-api-demo
Commits
a83c4508
Commit
a83c4508
authored
Jan 02, 2025
by
ml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产管理后台-修改费率 增加参数
parent
a037a351
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
task.fee.rate.log.model.ts
cron/model/task.fee.rate.log.model.ts
+6
-6
No files found.
cron/model/task.fee.rate.log.model.ts
View file @
a83c4508
...
@@ -120,10 +120,10 @@ export const changeUserSpotFee = async function (user_id, symbol, fee_model, mak
...
@@ -120,10 +120,10 @@ export const changeUserSpotFee = async function (user_id, symbol, fee_model, mak
await
checkFeeModel
(
fee_model
);
await
checkFeeModel
(
fee_model
);
let
product_type
=
pair
==
'all'
?
'spot'
:
'single'
;
let
product_type
=
pair
==
'all'
?
'spot'
:
'single'
;
//生效的费率 与要设置的费率 比对做校验 现在分不开 现货 合约 先不校验 之后分开了 再校验
//生效的费率 与要设置的费率 比对做校验 现在分不开 现货 合约 先不校验 之后分开了 再校验
/* let feeExist = await cancelIfFeeExist(user_id, product_type, symbol, maker_fee, taker_fee);
/* let feeExist = await cancelIfFeeExist(user_id, product_type, symbol, maker_fee, taker_fee);
if (feeExist) {
if (feeExist) {
return is_success;
return is_success;
}*/
}*/
let
asset
=
await
mainUserAsset
.
prototype
.
findOne
({
let
asset
=
await
mainUserAsset
.
prototype
.
findOne
({
where
:
{
where
:
{
user_id
user_id
...
@@ -149,7 +149,7 @@ export const changeUserSpotFee = async function (user_id, symbol, fee_model, mak
...
@@ -149,7 +149,7 @@ export const changeUserSpotFee = async function (user_id, symbol, fee_model, mak
await
sleep
(
1000
);
await
sleep
(
1000
);
//请求撮合 修改费率
//请求撮合 修改费率
let
res
=
await
changeTradingFee
(
pair
,
user_id
,
maker_fee
,
taker_fee
);
let
res
=
await
changeTradingFee
(
pair
,
user_id
,
maker_fee
,
taker_fee
,
"spot"
);
return
res
.
is_success
;
return
res
.
is_success
;
};
};
...
@@ -194,7 +194,7 @@ export const changeUserContractFee = async function (user_id, symbol, fee_model,
...
@@ -194,7 +194,7 @@ export const changeUserContractFee = async function (user_id, symbol, fee_model,
await
sleep
(
1000
);
await
sleep
(
1000
);
//请求撮合 修改费率
//请求撮合 修改费率
let
res
=
await
changeTradingFee
(
pair
,
user_id
,
maker_fee
,
taker_fee
);
let
res
=
await
changeTradingFee
(
pair
,
user_id
,
maker_fee
,
taker_fee
,
"lpc"
);
return
res
.
is_success
;
return
res
.
is_success
;
};
};
...
...
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