Skip to content

Commit

Permalink
Merge pull request #230 from valory-xyz/develop
Browse files Browse the repository at this point in the history
Release v0.12.4.post3
  • Loading branch information
dagacha authored Feb 9, 2024
2 parents 3d9325f + 664ef6a commit 1aab976
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 144 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ Agent runners are recommended to create a [backup](https://github.com/valory-xyz
1. Use the `trades` command to display information about placed trades by a given address:

```bash
cd trader; poetry run python ../trades.py YOUR_SAFE_ADDRESS; cd ..
cd trader; poetry run python ../trades.py --creator YOUR_SAFE_ADDRESS; cd ..
```

Or restrict the search to specific dates by defining the "from" and "to" dates:

```bash
cd trader; poetry run python ../trades.py YOUR_SAFE_ADDRESS --from-date 2023-08-15:03:50:00 --to-date 2023-08-20:13:45:00; cd ..
cd trader; poetry run python ../trades.py --creator YOUR_SAFE_ADDRESS --from-date 2023-08-15:03:50:00 --to-date 2023-08-20:13:45:00; cd ..
```

2. Use the `report` command to display a summary of the service status:
Expand Down
4 changes: 2 additions & 2 deletions report.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _get_mech_requests_count(
return sum(
1
for mech_request in mech_requests.values()
if mech_request.get("utc_timestamp", 0) > timestamp
if mech_request.get("block_timestamp", 0) > timestamp
)


Expand Down Expand Up @@ -218,7 +218,7 @@ def _parse_args() -> Any:
rpc = file.read().strip()

# Prediction market trading
mech_requests = trades.get_mech_requests(rpc, safe_address)
mech_requests = trades.get_mech_requests(safe_address)
mech_statistics = trades.get_mech_statistics(mech_requests)
trades_json = trades._query_omen_xdai_subgraph(safe_address)
_, statistics_table = trades.parse_user(
Expand Down
Loading

0 comments on commit 1aab976

Please sign in to comment.