Skip to content

Commit

Permalink
feat: candle 정보 수집 기능 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungGwan123 committed Nov 21, 2024
1 parent 103b705 commit 332d363
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/server/src/upbit/chart.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,20 @@ export class ChartService implements OnModuleInit{
const candle_acc_trade_price = price * candle_acc_trade_volume;
const candle = {
market : name,
candle_date_time_utc : kstDate.toISOString().slice(0,19),
candle_date_time_kst : kstDate.toISOString().slice(0,19),
opening_price : price,
high_price : price,
low_price : price,
trade_price : price,
timestamp : timestamp,
candle_acc_trade_price : candle_acc_trade_price,
candle_acc_trade_volume : candle_acc_trade_volume
candle_acc_trade_volume : candle_acc_trade_volume,
prev_closing_price : 0,
change_price : 0,
change_rate : 0,
}

const type = ['years','months','weeks','days','minutes','seconds'];
const minute_type = ["1", "3", "5", "10", "15", "30", "60", "240"];
type.forEach(async (key)=>{
Expand Down

0 comments on commit 332d363

Please sign in to comment.