Initial commit

This commit is contained in:
Yaser
2026-08-13 19:50:53 +03:30
commit 38084458fe
879 changed files with 95198 additions and 0 deletions

View 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