tebakaja's picture
feat: crafting stock and national currency proxy
a1eed6b
raw
history blame
741 Bytes
package stock
type ApiResponse struct {
Message string `json:"message"`
StatusCode int `json:"status_code"`
Data interface{} `json:"data"`
}
type PredictionRequest struct {
Days int `json:"days"`
Currency string `json:"currency"`
}
type PredictionResponse struct {
Message string `json:"message"`
StatusCode int `json:"status_code"`
Data struct {
Currency string `json:"currency"`
Predictions struct {
Actuals []struct {
Date string `json:"date"`
Price float64 `json:"price"`
} `json:"actuals"`
Predictions []struct {
Date string `json:"date"`
Price float64 `json:"price"`
} `json:"predictions"`
} `json:"predictions"`
} `json:"data"`
}