feat: add OI Low coin source and improve Mixed mode UI

- Add oi_low as independent source_type for short opportunities
- Redesign Mixed mode with card-based selector (2x2 grid)
- Show combination summary with total coin limit
- Support both Chinese and English languages
- Change default limits to 10 for OI Top and OI Low
This commit is contained in:
tinkle-community
2026-01-23 20:50:23 +08:00
parent fcaabea6cb
commit c9150e8273
5 changed files with 367 additions and 26 deletions

View File

@@ -106,11 +106,11 @@ func (c *Client) fetchOIRanking(rankType, duration string, limit int) ([]OIPosit
// GetOITopPositions retrieves top OI increase positions (legacy compatibility)
func (c *Client) GetOITopPositions() ([]OIPosition, error) {
data, err := c.GetOIRanking("1h", 20)
positions, _, err := c.fetchOIRanking("top", "1h", 20)
if err != nil {
return nil, err
}
return data.TopPositions, nil
return positions, nil
}
// GetOITopSymbols retrieves OI top coin symbol list
@@ -131,11 +131,11 @@ func (c *Client) GetOITopSymbols() ([]string, error) {
// GetOILowPositions retrieves OI decrease positions (for short opportunities)
func (c *Client) GetOILowPositions() ([]OIPosition, error) {
data, err := c.GetOIRanking("1h", 20)
positions, _, err := c.fetchOIRanking("low", "1h", 20)
if err != nil {
return nil, err
}
return data.LowPositions, nil
return positions, nil
}
// GetOILowSymbols retrieves OI low coin symbol list