Initial commit

This commit is contained in:
2026-03-04 01:58:10 +01:00
commit 19c9295809
29 changed files with 5232 additions and 0 deletions

33
app/types/crypto-api.ts Normal file
View File

@@ -0,0 +1,33 @@
export type SimpleCryptoCurrency = {
id: string;
name: string;
symbol: string;
slug: string;
logo: string;
description: string;
market_cap: number;
fully_diluted_market_cap: number;
circulating_supply: number;
total_supply: number;
max_supply: number;
infinite_supply: boolean;
price: number;
volume_24h: number;
percent_change_1h: number;
percent_change_24h: number;
percent_change_7d: number;
}
export type CryptoCurrencyHistory = {
history: Array<[price: number]>;
}
export type CryptocurrenciesListResponse = {
currencies: Array<SimpleCryptoCurrency>;
}
export type CryptocurrencyDetailsResponse = {
currency: SimpleCryptoCurrency & CryptoCurrencyHistory;
}