lib/cryptum/order_book/generate.rb in cryptum-0.0.380 vs lib/cryptum/order_book/generate.rb in cryptum-0.0.381
- old
+ new
@@ -23,10 +23,10 @@
session_root = option_choice.session_root
symbol = option_choice.symbol
order_book_file = "#{session_root}/order_books/#{symbol}.ORDER_BOOK.json"
# Only need to retrieve a product list once / session.
- products = Cryptum::API.get_products(
+ products = Cryptum::API::Products.get(
option_choice: option_choice,
env: env
)
this_product_arr = products.select do |product|
product if product[:id] == option_choice.symbol.to_s.gsub('_', '-').upcase