mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-10 00:38:07 +00:00
feat: 添加获取交易所显示名称的功能,并在 MakerApp、OffsetMakerApp 和 TrendApp 中显示交易所名称
This commit is contained in:
@@ -20,6 +20,10 @@ export function resolveExchangeId(value?: string | null): SupportedExchangeId {
|
||||
return "aster";
|
||||
}
|
||||
|
||||
export function getExchangeDisplayName(id: SupportedExchangeId): string {
|
||||
return id === "grvt" ? "GRVT" : "AsterDex";
|
||||
}
|
||||
|
||||
export function createExchangeAdapter(options: ExchangeFactoryOptions): ExchangeAdapter {
|
||||
const id = resolveExchangeId(options.exchange);
|
||||
if (id === "grvt") {
|
||||
|
||||
Reference in New Issue
Block a user