From 4def31a64d87bc6bf5af0b975aab38f6100a7245 Mon Sep 17 00:00:00 2001 From: Nikolaus Heger Date: Sun, 13 Oct 2024 15:56:09 +0800 Subject: [PATCH] fix: api for type The parameter is called instrument_type --- src/aevopy/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aevopy/api.py b/src/aevopy/api.py index 02d2254..b125396 100644 --- a/src/aevopy/api.py +++ b/src/aevopy/api.py @@ -27,7 +27,7 @@ def get_markets(asset: str = "", type=""): if asset: request_url += f"?asset={asset}" if type: - request_url += f"&type={type}" + request_url += f"&instrument_type={type}" response = requests.get(request_url, headers=headers).json() #TODO: fix types here, we can use typehooks or post_init, but the API should return an int for instrument_id