@baguskto/saham
Version:
MCP Server untuk data saham Indonesia (IDX) - Implementasi Node.js/TypeScript
46 lines • 1.27 kB
TypeScript
/**
* GitHub API utilities for fetching Dataset-Saham-IDX repository data
*/
export interface GitHubFileInfo {
name: string;
path: string;
sha: string;
size: number;
url: string;
download_url: string;
type: 'file' | 'dir';
}
export interface RepositoryInfo {
lastUpdated: string;
totalFiles: number;
availableStocks: string[];
}
export declare class GitHubApiService {
private readonly baseUrl;
private readonly rawUrl;
/**
* Get list of stock CSV files from LQ45 directory
*/
getLQ45StockFiles(): Promise<GitHubFileInfo[]>;
/**
* Get list of all stock CSV files from Semua directory
*/
getAllStockFiles(): Promise<GitHubFileInfo[]>;
/**
* Download stock CSV data for a specific ticker
*/
downloadStockData(ticker: string, useAllStocks?: boolean): Promise<string>;
/**
* Get repository information and metadata
*/
getRepositoryInfo(): Promise<RepositoryInfo>;
/**
* Check if a specific stock ticker is available in the dataset
*/
isStockAvailable(ticker: string): Promise<boolean>;
/**
* Get column definitions from the repository
*/
getColumnDefinitions(): Promise<string>;
}
//# sourceMappingURL=github-api.d.ts.map