mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-21 23:53:52 +00:00
parent
769bb47a0f
commit
c45dab5a9a
|
@ -17,14 +17,21 @@ const exchangeList = computed(() => {
|
|||
.sort((a, b) => a.name.localeCompare(b.name));
|
||||
|
||||
return [
|
||||
{ label: 'Supported', options: supported.map((e) => e.name) },
|
||||
{ label: 'Unsupported', options: unsupported.map((e) => e.name) },
|
||||
{
|
||||
label: 'Supported',
|
||||
options: supported.map((e) => ({ value: e.classname ?? e.name, text: e.name })),
|
||||
},
|
||||
{
|
||||
label: 'Unsupported',
|
||||
options: unsupported.map((e) => ({ value: e.classname ?? e.name, text: e.name })),
|
||||
},
|
||||
];
|
||||
});
|
||||
|
||||
const tradeModesTyped = computed(() => {
|
||||
const val = botStore.activeBot.exchangeList.find(
|
||||
(ex) => ex.name === exchangeModel.value.exchange,
|
||||
(ex) =>
|
||||
ex.name === exchangeModel.value.exchange || ex.classname === exchangeModel.value.exchange,
|
||||
)?.trade_modes;
|
||||
return val ?? [];
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user