Skip to content

Commit

Permalink
Switch from GAME to ENS
Browse files Browse the repository at this point in the history
  • Loading branch information
ymyke committed Oct 16, 2023
1 parent ab35ef6 commit 40730ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ s3.price_graph() # show price graph
- Search for a crypto ticker on coingecko:

```python
res = search("GAME") # search and print search result summary
res = search("name") # search and print search result summary
filtered = res.filter(source="coingecko") # filter results
filtered.p() # print summary of filtered results
filtered.buckets[0].symbols # review the best bucket in the filtered results
s4 = filtered.buckets[0].symbols[2] # our symbol is the 3rd in that list
filtered.buckets[1].symbols # review the 2nd bucket in the filtered results
s4 = filtered.buckets[1].symbols[2] # our symbol is the 3rd in that list
s4.price_history() # get entire history
```

Expand All @@ -82,9 +82,9 @@ sc_new.load_yaml("my_symbols.yaml")
- Use a different currency preference:

```python
sc.find_one("game").price_latest() # will return price in USD
sc.find_one("ens").price_latest() # will return price in USD
Symbol.currency_preference = "CHF"
sc.find_one("game").price_latest() # will return price in CHF
sc.find_one("ens").price_latest() # will return price in CHF
```

Note that `currency_preference` will only have an effect with sources that support it.
Expand Down

0 comments on commit 40730ce

Please sign in to comment.