feat(exchange): add exchange rate handling and scheduled updates

This commit is contained in:
Chang lue Tsen
2025-10-15 10:05:19 -04:00
parent 8562734fde
commit adbe9a06d8
10 changed files with 84 additions and 47 deletions
-11
View File
@@ -1,11 +0,0 @@
package types
const (
// ForthwithGetCountry forthwith country get
ForthwithGetCountry = "forthwith:country:get"
)
type GetNodeCountry struct {
Protocol string `json:"protocol"`
ServerAddr string `json:"server_addr"`
}
+3
View File
@@ -6,4 +6,7 @@ const (
// ForthwithQuotaTask create quota task immediately
ForthwithQuotaTask = "forthwith:quota:task"
// SchedulerExchangeRate fetch exchange rate task
SchedulerExchangeRate = "scheduler:exchange:rate"
)