fix(TradingView Charts): resolveSymbol callback arguments (#334)

This commit is contained in:
Yusuf Seyrek 2023-08-01 10:43:50 +03:00 committed by GitHub
parent fef4608681
commit 947777fbe7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 10 deletions

View File

@ -120,8 +120,7 @@ export class OsmosisTheGraphDataFeed implements IDatafeedChartApi {
setTimeout(() =>
onResolve({
...defaultSymbolInfo,
currency_code: pairName.split(PAIR_SEPARATOR)[0],
original_currency_code: pairName.split(PAIR_SEPARATOR)[1],
name: pairName.split(PAIR_SEPARATOR)[0],
full_name: pairName,
description: pairName,
ticker: pairName,

View File

@ -27,14 +27,7 @@ export const overrides = {
'linetooltrendline.linewidth': 2,
}
export const defaultSymbolInfo: LibrarySymbolInfo = {
currency_code: '',
original_currency_code: '',
full_name: '',
description: '',
ticker: '',
name: 'Osmosis',
exchange: 'Osmosis',
export const defaultSymbolInfo = {
listed_exchange: 'Osmosis',
type: 'AMM',
session: '24x7',