fix scan
This commit is contained in:
@@ -21,10 +21,10 @@ export const calculateScore = (quartils: HistoryQuartils, profit: number, orderC
|
||||
return Math.sqrt((Math.pow(quartils.totalVolume, 1.1) * Math.pow(quartils.q1, 1.2) * Math.pow(profit, 0.5) * Math.pow(Math.max(1, orderCount), -0.7)) / days);
|
||||
}
|
||||
|
||||
export const toScanResult = (res: MarketScanResponse, type: MarketType, price: MarketTypePrice): ScanResult => ({
|
||||
export const toScanResult = (res: MarketScanResponse, type: MarketType): ScanResult => ({
|
||||
type,
|
||||
buy: price.buy,
|
||||
sell: price.sell,
|
||||
buy: res.buy,
|
||||
sell: res.sell,
|
||||
q1: res.q1,
|
||||
median: res.median,
|
||||
q3: res.q3,
|
||||
|
||||
Reference in New Issue
Block a user