Skip to content

Commit

Permalink
Update for depreciated properties (#37)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
spiveym authored Aug 22, 2022
1 parent c97e67d commit 08e2409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimal_buy_cbpro/optimal_buy_cbpro.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 08e2409

Please sign in to comment.