lib/cryptum/portfolio/balance.rb in cryptum-0.0.380 vs lib/cryptum/portfolio/balance.rb in cryptum-0.0.381
- old
+ new
@@ -1,9 +1,7 @@
# frozen_string_literal: true
-require 'logger'
-
module Cryptum
# This plugin is used to instantiate a Cryptum logger with a custom message format
module Portfolio
module Balance
# Supported Method Parameters::
@@ -62,26 +60,26 @@
enotes = event_history.event_notes
enotes = "{ \"event_type\": \"#{etype}\", \"cancel\": \"#{ocancel}\", \"submitted\": \"#{osubmit}\" }" if option_choice.proxy
event_history.event_notes = enotes
- portfolio = Cryptum::API.get_portfolio(
+ portfolio = Cryptum::API::Portfolio.get(
option_choice: option_choice,
env: env,
crypto: crypto,
fiat: fiat,
fiat_portfolio_file: fiat_portfolio_file,
event_notes: event_history.event_notes
)
event_history.order_book[:portfolio] = portfolio unless portfolio.empty?
- order_history = Cryptum::API.get_order_history(
+ order_history = Cryptum::API::OrderHistory.get(
option_choice: option_choice,
env: env
)
event_history.order_book[:order_history] = order_history unless order_history.empty?
- fees = Cryptum::API.get_fees(
+ fees = Cryptum::API::Fees.get(
option_choice: option_choice,
env: env
)
event_history.order_book[:fees] = fees unless fees.empty?