-
Notifications
You must be signed in to change notification settings - Fork 18
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
#158 - [trader] Rename get_trader to trade #160
#158 - [trader] Rename get_trader to trade #160
Conversation
pdr_backend/trader/trader_agent.py
Outdated
self.prev_traded_epochs_per_feed[addr].append(epoch) | ||
self.save_previous_epochs() | ||
|
||
|
||
def get_trader(feed: Feed, prediction: Tuple[float, float]): | ||
def trade(feed: Feed, prediction: Tuple[float, float]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need to address docstring issues the I mentioned in the github issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a description
pdr_backend/trader/trader_agent.py
Outdated
@@ -124,12 +124,12 @@ def _process_block_at_feed(self, addr: str, timestamp: int, tries: int = 0): | |||
|
|||
print(f"Got {prediction}.") | |||
|
|||
self._get_trader(feed, prediction) | |||
self._trade(feed, prediction) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"trade() is gonna be hard to distinguish in some places. Now that I understand the intent a bit better, I recommend calling it "do_trade()".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
…r-name-documentation-is-confusing
…r-name-documentation-is-confusing
Fixes #158
Changes proposed in this PR: