Commit 2c5a597e authored by 1486327116's avatar 1486327116

update

parent e2eee981
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment