Skip to content

Commit

Permalink
fix bug for spot trade
Browse files Browse the repository at this point in the history
perf save config
  • Loading branch information
rainfu committed Jul 12, 2023
1 parent ed8e25f commit 9d89413
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extensions/output/panacea/api/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ const updateConfig = (message, cb, s) => {
if (message.data.takerFee || message.data.makerFee) {
s.exchange.initFees();
}

try {
let newConfig = _.defaultsDeep({ modified: message.data }, s.options);
delete newConfig.symbols;
// let filename = s.options.strategy.name + "_" + s.options.period + "_" + (new Date().getTime())
var target = require("path").resolve(
__dirname,
Expand Down

0 comments on commit 9d89413

Please sign in to comment.