lib/cryptum/api.rb in cryptum-0.0.242 vs lib/cryptum/api.rb in cryptum-0.0.243
- old
+ new
@@ -244,16 +244,12 @@
tpm_cast_as_decimal = tpm / 100
product_id = option_choice.symbol.to_s.gsub('_', '-').upcase
this_product = event_history.order_book[:this_product]
- # base_min_size = this_product[:base_min_size]
- min_market_funds = this_product[:min_market_funds]
base_increment = this_product[:base_increment]
quote_increment = this_product[:quote_increment]
- # crypto_smallest_size_to_buy = base_min_size.to_s.split('.')[-1].length
- crypto_smallest_size_to_buy = min_market_funds.to_s.split('.')[-1].length
crypto_smallest_decimal = base_increment.to_s.split('.')[-1].length
fiat_smallest_decimal = quote_increment.to_s.split('.')[-1].length
order_hash = {}
@@ -329,15 +325,11 @@
)
product_id = option_choice.symbol.to_s.gsub('_', '-').upcase
this_product = event_history.order_book[:this_product]
- # base_min_size = this_product[:base_min_size]
- min_market_funds = this_product[:min_market_funds]
base_increment = this_product[:base_increment]
quote_increment = this_product[:quote_increment]
- # crypto_smallest_size_to_buy = base_min_size.to_s.split('.')[-1].length
- crypto_smallest_size_to_buy = min_market_funds.to_s.split('.')[-1].length
crypto_smallest_decimal = base_increment.to_s.split('.')[-1].length
fiat_smallest_decimal = quote_increment.to_s.split('.')[-1].length
# TODO: Calculate / Price / Size
last_three_prices_arr = []