Closed erkarl closed 3 years ago
To add some more details:
This issue is about fetching active markets for DEX and CEX and validating the provided trading pair against it.
cex-base-asset
& cex-quote-asset
optional, since these values are only required if arby cannot find the market/pair on the exchange. Let's add an explainer comment in the sample config with an example how cex-base-asset
& cex-quote-asset
are used.Also cex-base-asset
& cex-quote-asset
should be ignored entirely if test-centralized-baseasset-balance
& test-centralized-quoteasset-balance
are set, meaning arby doesn't even connect to a cex and to fetch markets/pairs.
Also
cex-base-asset
&cex-quote-asset
should be ignored entirely iftest-centralized-baseasset-balance
&test-centralized-quoteasset-balance
are set, meaning arby doesn't even connect to a cex and to fetch markets/pairs.
How does arby get the price feed for CEX if cex-base-asset
and cex-quote-asset
values are ignored?
Arby subscribes to the CEX price stream for base-asset
and quote-asset
Arby subscribes to the CEX price stream for
base-asset
andquote-asset
Yes, arby subscribes to the price stream for base-asset
and quote-asset
(or cex-base-asset
and cex-quote-asset
if defined), but we should still validate that the trading pair exists on that CEX (otherwise we won't get a price feed). This should happen even if test-centralized-baseasset-balance
and test-centralized-quoteasset-balance
is defined.
Agreed! My bad, removed that point.
At the moment valid trading pairs are hardcoded in the configuration checks.
This issue is about fetching active markets for DEX and CEX and validating the provided trading pair against it.