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

Update TradeOgreAdapters.java that is building a reversed CurrencyPair #4871

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

francitoshi
Copy link

fix the CurrencyPair that is buiding wrong using COUNTER-BASE and should be BASE-COUNTER

fix the CurrencyPair that is buiding wrong using COUNTER-BASE and should be BASE-COUNTER
@rizer1980
Copy link
Contributor

Hello francitoshi
As minimum, TestTradeOgreAdapters is failed after your fix.
Also, as i think(not sure for 100%), you need to fix adaptTradeOgreCurrencyPair method too.
And, if possible, add some test for this fix.

@@ -23,7 +23,7 @@
public class TradeOgreAdapters {

public static String adaptCurrencyPair(CurrencyPair currencyPair) {
return currencyPair.counter.toString() + "-" + currencyPair.base.toString();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use getters instead of direct field access

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm using it on a project, and this just the change I need, I'll try to fix tests and use getters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants