Commit 6f4a27a5 authored by 1486327116's avatar 1486327116

update

parent 76dbeac4
......@@ -147,3 +147,27 @@ export const addPairToCore = async (body) => {
return res;
}
// 设置手续费 至少指定user_id 和 product_id 二者其一
export const changeTradingFee = async (product_id,user_id,maker_fee,taker_fee) => {
let body = {
maker_fee,taker_fee,
}
if (product_id>0) {
body["product_id"] = product_id;
}
if (user_id>0) {
body["user_id"] = user_id;
}
let res = {
is_success: true,
err_msg: ""
};
const url = `${webadmin_endpoint}/market_maker/change_trading_fee`
let { data } = await axios.post(url, body);
if (data.state != 0) {
logger.error("addPairToCore", data.msg);
res.is_success = false;
res.err_msg = data.msg;
}
return res;
}
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