From 08e24090035197b15a3f9dd6ca6757fea20ea3b1 Mon Sep 17 00:00:00 2001 From: spiveym Date: Mon, 22 Aug 2022 08:00:29 -0500 Subject: [PATCH] Update for depreciated properties (#37) The properties base_max_size, base_min_size, max_market_funds were removed on June 30, 2022. The property, min_market_funds, was repurposed as the notional minimum size for limit orders. --- optimal_buy_cbpro/optimal_buy_cbpro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optimal_buy_cbpro/optimal_buy_cbpro.py b/optimal_buy_cbpro/optimal_buy_cbpro.py index 425ec16..d020530 100755 --- a/optimal_buy_cbpro/optimal_buy_cbpro.py +++ b/optimal_buy_cbpro/optimal_buy_cbpro.py @@ -73,7 +73,7 @@ def get_products(cbpro_client, coins, fiat_currency): products = cbpro_client.get_products() for p in products: if p["base_currency"] in coins and p["quote_currency"] == fiat_currency: - coins[p["base_currency"]]["minimum_order_size"] = float(p["base_min_size"]) + coins[p["base_currency"]]["minimum_order_size"] = float(p["min_market_funds"]) return products