moneyonrails's Issues
hide header unused icon
hide sidebar unused icon
try Delayed::Job
Daemon as worker
1 robot 1 user 1 daemon (1 EM)
SQL for last rate is extremely slow
FtxClient.open_orders 不一定會回傳所有的訂單
app\jobs\grid_close_job.rb
line17
open_orders = FtxClient.open_orders(@sub_account, market: @grid_setting["market_name"])["result"].select {|order| order["createdAt"] > @grid_setting.created_at}
可能是filter order["createdAt"] 的問題
修復 master的所有rake!
try async-websocket
def update_market_infos 不應該出現在funding_helper中
way to monitor sidekiq
sidekiq auto monitor
https://blog.niclin.tw/2018/07/08/%E5%9C%A8-server-%E4%B8%8A%E8%87%AA%E5%8B%95%E7%9B%A3%E6%8E%A7-sidekiq/
https://stackoverflow.com/questions/61360805/how-to-monit-sidekiq-process-run-by-systemd
https://github.com/mperham/sidekiq/blob/main/examples/systemd/sidekiq.service
https://dev.to/kevinluo201/systemd-ubuntu-sidekiq-6-d9c
改成 materialized-views (每小時更新的報表)
將TradingView轉接功能另開為一個daemon
models method sort by def name
model: ftx_client
jobs all
controller all
check all controller/action after users
check all controller/action after users
layouts/application.html.erb 超緩慢
layouts/application.html.erb 超緩慢
Add Specs!
- controller
- helper
- jobs
- models
- tasks
worker啟動機制,狀態監控改用redis
啟動、增加、刪除
確認 EM是否可以多重private ws
目標是可以動態增加或是減少
add AASM 狀態機 to GridSetting & FundingOrder
grid index view 可以簡化成一個template
<div class="card">
<div class="stat-widget-two card-body">
<div class="stat-content">
<div class="stat-text"><%= "#{coin_name}" %>可用餘額</div>
<div class="stat-digit">
<% spot_precision = decimals(@grid_setting.size_step) %>
<% spot_data = balances[coin_name] %>
<% spot_available_usdValue = spot_data["spot_amount"] == 0 ? 0 : (spot_data["usdValue"] / spot_data["spot_amount"]) * spot_data["available_amount"] %>
<%= spot_data["available_amount"].round(spot_precision) %> / <i class="far fa-dollar-sign"></i><%= spot_available_usdValue.round(2) %>
</div>
</div>
<div class="progress">
<% percent = (spot_available_usdValue / balances["totalusdValue"]) * 100.round(0) %>
<div class="progress-bar bg-success" style="width: <%= percent %>%" role="progressbar" aria-valuenow="<%= percent %>" aria-valuemin="0" aria-valuemax="100">
in USD
</div>
</div>
</div>
</div>
CSS model content z-index modify to 999
CSS model content z-index modify to 999
Sidekiq不穩定,改用daemon
將Worker內的工作區分成物件,使用daemon工作
check headers links work
將 rake market:update_info 加入排程
將 rake market:update_info 加入排程
將資費開關單從輪詢改為WS
會員架構
在功能皆正常運作的前提下加入使用者驗證
worker啟動機制改善,評估使用rabbitmq
需確認驅動架構可行
api show view disable textbox cache
done
確認自動更新FTX資料的邏輯(新增/刪除PERP等等)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.