Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

currency/exchanges: Add bespoke exchange translator and pair matching helper #1556

Merged
merged 18 commits into from
Aug 16, 2024
Prev Previous commit
Next Next commit
Merge branch 'master' into trans
Ryan O'Hara-Reid committed Jun 14, 2024
commit 74b64a4527fb2220fc7c3a720087fabdca4a6d03
8 changes: 4 additions & 4 deletions exchanges/exchange_types.go
Original file line number Diff line number Diff line change
@@ -150,10 +150,10 @@ type WithdrawalHistory struct {
// Features stores the supported and enabled features
// for the exchange
type Features struct {
Supports FeaturesSupported
Enabled FeaturesEnabled
Subscriptions []*subscription.Subscription
CurrencyTranslations currency.Translations
Supports FeaturesSupported
Enabled FeaturesEnabled
Subscriptions subscription.List
CurrencyTranslations currency.Translations
}

// FeaturesEnabled stores the exchange enabled features

Unchanged files with check annotations Beta

}
}
func (p Pair) KeyPair() keyPair {

Check failure on line 132 in currency/translation_test.go

GitHub Actions / lint

unexported-return: exported method KeyPair returns unexported type currency.keyPair, which can be annoying to use (revive)
return keyPair{Base: p.Base.Item, Quote: p.Quote.Item}
}
You are viewing a condensed version of this merge commit. You can view the full changes here.