We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/DaunteEth/woofi-pro-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { signAndSendRequest, validateConfig } from '../utils/auth.js';
/**
* Get account information (using key info endpoint)
*/
export async function getAccountInfo() {
validateConfig();
console.log('π Getting account info...');
try {
const result = await signAndSendRequest('GET', '/v1/client/key_info');
console.log('β
Account info retrieved successfully:', result);
return result;
} catch (error) {
console.error('β Failed to get account info:', error);
throw error;
}
}
/**
* Get account positions
*/
export async function getAccountPositions() {
validateConfig();
console.log('π Getting account positions...');
try {
const result = await signAndSendRequest('GET', '/v1/positions');
console.log('β
Positions retrieved successfully:', result);
return result;
} catch (error) {
console.error('β Failed to get positions:', error);
throw error;
}
}
/**
* Get open orders
*/
export async function getOpenOrders() {
validateConfig();
console.log('π Getting open orders...');
try {
const result = await signAndSendRequest('GET', '/v1/orders?status=open');
console.log('β
Open orders retrieved successfully:', result);
return result;
} catch (error) {
console.error('β Failed to get open orders:', error);
throw error;
}
}