removed some files
This commit is contained in:
parent
b87a931a2b
commit
cbf002a31a
4 changed files with 2 additions and 247 deletions
|
|
@ -329,7 +329,6 @@ export async function fetchIntraday(
|
|||
symbol,
|
||||
exchange,
|
||||
symbolExchange: `${symbol}.${exchange}`,
|
||||
interval,
|
||||
datetime: bar.datetime,
|
||||
timestamp: bar.timestamp,
|
||||
gmtoffset: bar.gmtoffset,
|
||||
|
|
@ -341,12 +340,12 @@ export async function fetchIntraday(
|
|||
source: 'eod'
|
||||
}));
|
||||
|
||||
// Save to MongoDB - use timestamp, symbol, and interval as unique identifier
|
||||
// Save to MongoDB - use timestamp and symbolExchange as unique identifier
|
||||
const collectionName = `eodIntraday${interval.toUpperCase()}`;
|
||||
const result = await this.mongodb.batchUpsert(
|
||||
collectionName,
|
||||
recordsWithMetadata,
|
||||
['timestamp', 'symbolExchange', 'interval']
|
||||
['timestamp', 'symbolExchange']
|
||||
);
|
||||
|
||||
logger.info(`Saved ${result.insertedCount} intraday records`, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue