feat: huge update
This commit is contained in:
parent
9c621760cf
commit
757b759b4a
47 changed files with 221 additions and 286 deletions
|
@ -17,7 +17,7 @@ def get_btc_fees() -> str:
|
|||
url = "mempool.space"
|
||||
path = "/api/v1/fees/mempool-blocks"
|
||||
|
||||
client = http.HTTPSConnection(url)
|
||||
client = http.HTTPSConnection(url, timeout=10)
|
||||
client.request("GET", path)
|
||||
|
||||
# https://mempool.space/docs/api/rest#get-mempool-blocks-fees
|
||||
|
@ -30,7 +30,7 @@ def get_coins_values() -> str:
|
|||
url = "api.coingecko.com"
|
||||
path = f"/api/v3/simple/price?ids={ids}&vs_currencies={CURRENCY}"
|
||||
|
||||
client = http.HTTPSConnection(url)
|
||||
client = http.HTTPSConnection(url, timeout=10)
|
||||
client.request("GET", path)
|
||||
|
||||
# https://www.coingecko.com/api/documentation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue