Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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