Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Pyband: Implemented get_price_symbols to client module #2883

Merged
merged 6 commits into from
Nov 18, 2020
Merged
Show file tree
Hide file tree
Changes from 3 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
1 change: 1 addition & 0 deletions CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@

### Helpers

- (feat) [\#2883](https://github.com/bandprotocol/bandchain/pull/2883) pyband: Implemented get_price_symbols to client module
- (feat) [\#2872](https://github.com/bandprotocol/bandchain/pull/2872) Bandchain.js: Added new Address class and added more fn on PublicKey class
- (feat) [\#2865](https://github.com/bandprotocol/bandchain/pull/2865) bandchain.js: Add Private Key and verify on Public Key on Wallet
- (impv) [\#2863](https://github.com/bandprotocol/bandchain/pull/2863) bandchain.js: Add Github action
Expand Down
10 changes: 10 additions & 0 deletions helpers/pyband/pyband/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from dacite import from_dict
from .wallet import Address
from typing import List
from .data import (
Account,
Block,
Expand Down Expand Up @@ -128,3 +129,12 @@ def get_latest_request(self, oid: int, calldata: bytes, min_count: int, ask_coun

def get_reporters(self, validator: str) -> list:
pzshine marked this conversation as resolved.
Show resolved Hide resolved
return self._get_result("/oracle/reporters/{}".format(validator))

def get_price_symbols(self, min_count: int, ask_count: int) -> List[str]:
return self._get_result(
"/oracle/price_symbols",
params={
"min_count": min_count,
"ask_count": ask_count,
},
)
Loading