fincubator / tellerbot

Telegram Bot for over-the-counter trading
https://t.me/TellerBot
GNU Affero General Public License v3.0
23 stars 10 forks source link

Show currency in different gateways in filters #28

Closed r4rdsn closed 4 years ago

r4rdsn commented 4 years ago

If users filters order book by currency, it should show not only the raw currency but this currency in different gateways. For example, filtering by BTC should also include OPEN.BTC and RUDEX.BTC.

r4rdsn commented 4 years ago

I first proposed to solve this by adding gateway fields to order object and removing gateway from currency fields to consider gateway and currency separately in filters, but it would require changes in showing the currency to the user. Another way that comes to mind is filter by regular expression that ignores the gateway part ((\w+\.)?{currency}$), which is much easier to implement because it doesn't require significant changes.