Class: BitexBot::BuyClosingFlow

Inherits:
ClosingFlow
  • Object
show all
Defined in:
lib/bitex_bot/models/buy_closing_flow.rb

Overview

It sold at Bitex and needs to close (buy) in the other market.

Class Method Summary collapse

Methods inherited from ClosingFlow

close_open_positions, create_closing_flow!, #create_initial_order_and_close_position!, open_positions, #positions_balance_amount, suggested_amount, #sync_closed_positions

Class Method Details

.fx_rateObject



13
14
15
# File 'lib/bitex_bot/models/buy_closing_flow.rb', line 13

def self.fx_rate
  Settings.buying_fx_rate
end

.open_position_classObject



9
10
11
# File 'lib/bitex_bot/models/buy_closing_flow.rb', line 9

def self.open_position_class
  OpenBuy
end