class Abot::Info::DatabaseTable
Constants
- API_KEY
- API_KEY_TABLE
- BASE_CONNECTION
- DB_PATH
- SECRET_KEY
Public Class Methods
data_coins()
click to toggle source
# File lib/abot/info/database_table.rb, line 19 def data_coins BASE_CONNECTION.execute('SELECT * FROM symbols WHERE statusOrder IS NOT "NO_ORDER"') end
data_daily_profit()
click to toggle source
# File lib/abot/info/database_table.rb, line 27 def data_daily_profit BASE_CONNECTION.execute("SELECT quote, sum(profit) as sum, count(*) as count FROM daily_profit GROUP BY quote") end
data_settings()
click to toggle source
# File lib/abot/info/database_table.rb, line 23 def data_settings BASE_CONNECTION.execute('SELECT * FROM trade_params').first end