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
2c5a597e
Commit
2c5a597e
authored
Feb 05, 2025
by
1486327116
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e2eee981
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
spotPair.service.ts
src/functional/mvc/service/spotPair.service.ts
+7
-2
No files found.
src/functional/mvc/service/spotPair.service.ts
View file @
2c5a597e
...
...
@@ -47,7 +47,9 @@ export interface AddParam {
quantity_increment
?:
number
;
status
?:
number
status
?:
number
;
fee_mode
?:
number
;
view_precision
?:
number
...
...
@@ -113,6 +115,9 @@ export const save = async (param: AddParam, currentUserId: any, ip: any) => {
if
(
!
param
.
quantity_increment
)
{
param
.
quantity_increment
=
1
;
}
if
(
!
param
.
fee_mode
)
{
param
.
fee_mode
=
0
;
}
await
spotPairs
.
prototype
.
create
(
param
);
//管理后台操作日志
addOptLog
(
currentUserId
,
0
,
'交易对配置新增'
,
ip
,
JSON
.
stringify
(
param
),
'交易对配置'
);
...
...
@@ -177,7 +182,7 @@ export const pushToCoreSystem = async (id: any, currentUserId: any, ip: any) =>
let
param
=
{
"base"
:
base
,
"quote"
:
quote
,
"symbol"
:
symbol
,
"name"
:
symbol
,
"price_scale"
:
cfg
.
price_scale
,
"quantity_scale"
:
cfg
.
quantity_scale
,
"maker_fee"
:
cfg
.
maker_fee
,
"taker_fee"
:
cfg
.
taker_fee
"maker_fee"
:
cfg
.
maker_fee
,
"taker_fee"
:
cfg
.
taker_fee
,
"fee_mode"
:
cfg
.
fee_mode
}
if
(
cfg
.
min_order_size
)
{
param
[
"min_order_size"
]
=
cfg
.
min_order_size
;
...
...
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