thuanle
e565503f24
Add rich token message design spec
...
Document unified Telegram token message format that includes
all available sources (spot/future/alpha) with conditional rows.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-26 17:09:23 +07:00
thuanle
77036f2211
Merge pull request 'Update module github.com/jedib0t/go-pretty/v6 to v6.7.10' ( #14 ) from renovate/github.com-jedib0t-go-pretty-v6-6.x into main
Build Docker Image / build (amd64) (push) Successful in 1m11s
2026-04-26 16:52:45 +07:00
renovatebot
d13c76a93d
Update module github.com/jedib0t/go-pretty/v6 to v6.7.10
2026-04-26 16:52:29 +07:00
thuanle
cdd5f8d4af
Merge pull request 'Update module github.com/go-resty/resty/v2 to v2.17.2' ( #13 ) from renovate/github.com-go-resty-resty-v2-2.x into main
Build Docker Image / build (amd64) (push) Successful in 2m16s
2026-04-26 16:51:22 +07:00
renovatebot
93b6c42842
Update module github.com/go-resty/resty/v2 to v2.17.2
2026-04-26 16:49:28 +07:00
thuanle
ee6c181cd6
Merge pull request 'Remove ETH special portfolio tracking' ( #16 ) from chore/remove-eth-special-case into main
...
Build Docker Image / build (amd64) (push) Successful in 1m0s
Reviewed-on: #16
2026-04-26 16:45:36 +07:00
thuanle
4cab108549
Merge branch 'main' into chore/remove-eth-special-case
2026-04-26 16:45:27 +07:00
thuanle
733cf48e41
Merge pull request 'Rewrite price lookup from WebSocket to REST API' ( #15 ) from feat/rest-price-lookup into main
...
Build Docker Image / build (amd64) (push) Successful in 1m37s
Reviewed-on: #15
2026-04-26 16:19:28 +07:00
thuanle
914beea5ce
Address PR #15 round 2: fail-closed admin guard, sync init, error reporting
...
1. /refresh now fail-closed: rejects all if ADMIN_CHAT_ID unset or invalid
2. Initial pair cache fill is synchronous — bot waits before accepting queries
3. /refresh reports failure when API fetch fails instead of always saying success
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-26 16:03:22 +07:00
thuanle
c7128ff516
Address PR #15 review: batch API calls and admin-guard /refresh
...
1. Add GetAllPremiumIndex() to fetch all futures data in one call,
used by GetTopPrices instead of per-symbol sequential calls.
2. Add ADMIN_CHAT_ID env check to /refresh command to restrict
access to authorized users only.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-26 15:40:00 +07:00
thuanle
59da49c17f
Remove ETH special portfolio tracking
...
Treat ETH like any other token — display only spot/future price
and funding rate, removing personal portfolio calculations.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-26 15:14:39 +07:00
thuanle
9c39423315
Rewrite price lookup from WebSocket to REST API
...
Replace unreliable WebSocket connections with on-demand REST API calls
for spot and futures prices. Add cached trading pair list (refreshed
hourly) for symbol validation, and /refresh command for manual updates.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-26 15:14:09 +07:00
thuanle
c5c1cdf0d5
Add hourly Alpha token cache refresh
...
Build Docker Image / build (amd64) (push) Successful in 58s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-25 01:58:50 +07:00
thuanle
ced55e5f16
Add dedicated Alpha token price display with 24h change
...
Build Docker Image / build (amd64) (push) Successful in 1m31s
Alpha tokens now show a simplified format with price and 24h change
instead of the regular token format with empty futures/funding data.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-25 01:51:56 +07:00
thuanle
a5ff76fc96
Update dependencies: go-binance v2.8.11, lo v1.53.0, x/text v0.36.0, telebot v3.3.8
...
Build Docker Image / build (amd64) (push) Successful in 5m21s
Also update Dockerfile to golang:1.26 and go directive to 1.25.0.
Supersedes all pending renovate PR branches.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-25 01:27:12 +07:00
thuanle
87e69ec8d0
Remove Alpha token price caching in spotPrice map
...
Build Docker Image / build (amd64) (push) Successful in 2m21s
Alpha token prices are now looked up directly from Alpha data instead
of being cached into spotPrice. Remove unused ensureAlphaCacheLoaded
and shouldRefreshAlphaCache functions.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-25 01:14:40 +07:00
thuanle
440fa3bacd
Fix concurrent map read/write race condition in MarketData
...
Add sync.RWMutex to protect future and spot price maps accessed by
WebSocket handlers (writers) and Telegram bot handlers (readers).
Also adds Alpha token support with caching.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-25 00:15:22 +07:00
thuanle
248d3153e7
Update renovate.json
Build Docker Image / build (amd64) (push) Failing after 46s
2025-10-09 09:14:24 +07:00
thuanle
7fe49ec3ae
Merge pull request 'Update module github.com/go-resty/resty/v2 to v2.16.5' ( #4 ) from renovate/github.com-go-resty-resty-v2-2.x into main
...
Build Docker Image / build (amd64) (push) Failing after 3m55s
Reviewed-on: #4
2025-10-03 04:11:29 +07:00
renovatebot
955fa43d04
Update module github.com/go-resty/resty/v2 to v2.16.5
renovate/artifacts Artifact file update failure
2025-09-27 17:00:25 +00:00
thuanle
cf410da46a
Merge pull request 'Update module github.com/adshao/go-binance/v2 to v2.8.5' ( #3 ) from renovate/github.com-adshao-go-binance-v2-2.x into main
...
Build Docker Image / build (amd64) (push) Failing after 20s
Reviewed-on: #3
2025-09-24 09:08:56 +07:00
renovatebot
af935fd754
Update module github.com/adshao/go-binance/v2 to v2.8.5
renovate/artifacts Artifact file update failure
2025-09-20 17:00:27 +00:00
thuanle
a81ab7c863
Merge pull request 'Configure Renovate' ( #1 ) from renovate/configure into main
...
Build Docker Image / build (amd64) (push) Successful in 2m38s
Reviewed-on: #1
2025-09-20 00:23:59 +07:00
thuanle
97c627e97c
trang bức amount
Build Docker Image / build (amd64) (push) Successful in 21s
2025-09-19 10:37:31 +07:00
thuanle
92a11492fb
trang bức mode
Build Docker Image / build (amd64) (push) Successful in 21s
2025-09-18 12:59:03 +07:00
thuanle
78f2aca4c5
fix format
Build Docker Image / build (amd64) (push) Successful in 17s
2025-09-12 12:38:35 +07:00
thuanle
be46315860
update BacFoy goal
Build Docker Image / build (amd64) (push) Successful in 23s
2025-09-12 12:32:43 +07:00
thuanle
a04bbf5bfa
update BacFoy
Build Docker Image / build (amd64) (push) Successful in 2m41s
2025-09-12 12:24:20 +07:00
renovatebot
6558a2a368
Add renovate.json
2025-09-06 03:32:13 +00:00
thuanle
f9d0f2efc8
BacFoy Delta
Build Docker Image / build (amd64) (push) Successful in 2m34s
2025-08-22 23:21:02 +07:00
thuanle
b80620d376
BacFoy Delta
Build Docker Image / build (amd64) (push) Successful in 3m45s
2025-08-22 23:11:56 +07:00
thuanle
76079a42b3
BacFoy Delta
Build Docker Image / build (amd64) (push) Successful in 19s
2025-08-22 23:04:30 +07:00
thuanle
a3b2db7666
BacFoy Delta
Build Docker Image / build (amd64) (push) Successful in 2m9s
2025-08-22 22:54:27 +07:00
thuanle
b9e6abf4cf
add bacfoy eth
Build Docker Image / build (amd64) (push) Successful in 5m28s
2025-08-22 22:06:02 +07:00
thuanle
7228d659a2
add bacfoy eth
Build Docker Image / build (amd64) (push) Successful in 5m48s
2025-08-22 21:55:51 +07:00
thuanle
554254b05e
Add symbolSOL to TopPriceSymbols list
Build Docker Image / build (amd64) (push) Successful in 1m37s
2025-07-18 17:37:45 +07:00
thuanle
7cc9ec0f1f
Update internal/configs/strategy/market.go
Build Docker Image / build (amd64) (push) Successful in 3m29s
2025-06-25 17:27:56 +07:00
thuanle
c70580371c
update prefix order
Build Docker Image / build (amd64) (push) Successful in 1m14s
2024-11-11 20:19:00 +07:00
thuanle
8ba7856510
update prefix
Build Docker Image / build (amd64) (push) Successful in 2m44s
2024-11-11 18:56:16 +07:00
thuanle
386bbd83e3
update display
...
Build Docker Image / build (amd64) (push) Successful in 1m13s
add SOL
2024-10-24 11:11:32 +07:00
thuanle
14b3604362
margin rate as %
Build Docker Image / build (amd64) (push) Successful in 1m13s
2024-10-24 11:08:17 +07:00
thuanle
94a11e8d68
add margin
Build Docker Image / build (amd64) (push) Successful in 1m47s
2024-10-24 10:58:32 +07:00
thuanle
b60fcb842d
CI
Build Docker Image / build (amd64) (push) Successful in 1m40s
2024-10-24 10:05:04 +07:00
thuanle
92a63c7885
init code
2024-10-24 09:53:23 +07:00
thuanle
a7559b3f9d
init code
2024-10-24 09:53:02 +07:00