Admin Dashboard

Fetch All Tokens
Fetch and save tokens from both CoinGecko and CoinMarketCap to the database

This operation will fetch tokens from CoinGecko (top 1000) and CoinMarketCap (top 200) and save them to the database. It may take several minutes to complete.

Export Data
Export all token data from the database

This operation will export all token data from the database in JSON format. The data can be used for analysis or backup purposes.

ML Model Training
Train machine learning models on token data

Use the exported data to train machine learning models for token scoring and risk assessment. Follow these steps:

  1. Export the token data using the "Export Data" button above
  2. Save the exported data as export.json
  3. Run the Python script below to train a model on the data
  4. The trained model will be saved as trust_model.pkl
import pandas as pd
import joblib
from sklearn.ensemble import RandomForestRegressor

# Load the exported data
df = pd.read_json('export.json')

# Prepare features
X = df[['market_cap']]
y = df['score']

# Train the model
model = RandomForestRegressor().fit(X, y)

# Save the trained model
joblib.dump(model, 'trust_model.pkl')