Initial commit
This commit is contained in:
12
config/initializers/matching_engine.rb
Normal file
12
config/initializers/matching_engine.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
# encoding: UTF-8
|
||||
# frozen_string_literal: true
|
||||
|
||||
case ENV.fetch('MATCHING_ENGINE', 'peatio')
|
||||
when 'finex'
|
||||
Rails.logger.info { 'Use finex as third-party matching engine' }
|
||||
Order::TYPES << 'post_only'
|
||||
when 'peatio'
|
||||
Rails.logger.info { 'Use default matching engine' }
|
||||
end
|
||||
Order::TYPES.freeze
|
||||
Order.enumerize :ord_type, in: Order::TYPES, scope: true
|
||||
Reference in New Issue
Block a user