Internal PI System
// Select an endpoint and click Execute to see response
const fetchMarkets = async () => {
try {
const response = await fetch('/api/markets');
const data = await response.json();
console.log('Total markets:', data.count);
console.log('Markets:', data.data);
return data;
} catch (error) {
console.error('Error:', error);
}
};
// Usage
fetchMarkets();
const express = require('express');
const axios = require('axios');
const app = express();
// Proxy to ZanXrypto API
app.get('/markets', async (req, res) => {
try {
const response = await axios.get('https://zanxrypto.my.id/api/markets');
res.json(response.data);
} catch (error) {
res.status(500).json({ error: error.message });
}
});
app.listen(4000, () => {
console.log('Server running on port 4000');
});
import axios from 'axios';
// Create instance with base URL
const api = axios.create({
baseURL: 'https://zanxrypto.my.id/api',
timeout: 5000,
headers: {
'Content-Type': 'application/json'
}
});
// Get all markets
const getMarkets = async () => {
const { data } = await api.get('/markets');
return data;
};
// Get specific market
const getMarket = async (symbol) => {
const { data } = await api.get(`/market/${symbol}`);
return data;
};
// Search markets
const searchMarkets = async (query) => {
const { data } = await api.get('/search', {
params: { q: query }
});
return data;
};
import requests
BASE_URL = 'https://zanxrypto.my.id/api'
def get_markets():
"""Get all market data"""
response = requests.get(f'{BASE_URL}/markets')
return response.json()
def get_market(symbol):
"""Get specific market by symbol"""
response = requests.get(f'{BASE_URL}/market/{symbol}')
return response.json()
def search_markets(query):
"""Search markets"""
response = requests.get(
f'{BASE_URL}/search',
params={'q': query}
)
return response.json()
# Usage
if __name__ == '__main__':
markets = get_markets()
print(f"Total markets: {markets['count']}")
btc = get_market('BTC')
print(f"BTC Price: ${btc['data']['price']}")
Settings
Theme
Select your preferred color scheme
Auto Refresh
Refresh data every 30 seconds
Base URL
Internal API base endpoint
Data Format
Response format for PI queries
Farel Alfareza
Web Developer & Founder
I am a web and blockchain developer with a strong passion for building innovative platforms in the cryptocurrency and financial technology space. My work focuses on creating modern, efficient, and data-driven systems that help users understand market movements and make smarter financial decisions.
ZanXrypto is one of my internal projects designed as a Market Intelligence System for cryptocurrency markets. The platform provides analytics, monitoring tools, and insights that help traders, investors, and crypto enthusiasts stay informed about market trends and digital asset performance.