fix: restore quotes stripped by heredoc in market.ts
This commit is contained in:
parent
c53c188ae4
commit
2f13c0d7a2
1 changed files with 7 additions and 7 deletions
|
|
@ -55,11 +55,11 @@ async function fetchFromAngel(): Promise<MarketQuote[]> {
|
|||
const tokenMap: Record<string, string[]> = {};
|
||||
// We match by tradingSymbol because exchangeType is sometimes undefined in response
|
||||
const symToKey: Record<string, string> = {
|
||||
BSX: SENSEX, // BSE token 1
|
||||
USDINR: USDINR, // CDS token 1
|
||||
NIFTY: NIFTY50,
|
||||
BANKNIFTY: BANKNIFTY,
|
||||
INDIA VIX: INDIAVIX,
|
||||
'BSX': 'SENSEX',
|
||||
'USDINR': 'USDINR',
|
||||
'NIFTY': 'NIFTY50',
|
||||
'BANKNIFTY': 'BANKNIFTY',
|
||||
'INDIA VIX': 'INDIAVIX',
|
||||
};
|
||||
|
||||
for (const idx of INDEX_TOKENS) {
|
||||
|
|
@ -68,8 +68,8 @@ async function fetchFromAngel(): Promise<MarketQuote[]> {
|
|||
}
|
||||
|
||||
const r = await axios.post(
|
||||
BASE + /rest/secure/angelbroking/market/v1/quote/,
|
||||
{ mode: FULL, exchangeTokens: tokenMap },
|
||||
BASE + '/rest/secure/angelbroking/market/v1/quote/',
|
||||
{ mode: 'FULL', exchangeTokens: tokenMap },
|
||||
{ headers, timeout: 8000 }
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue