Get pair quote
Get an approximate current price for the provided pair, side and amount.
getQuote(
String $pair, // default 'BTC/USDT'
String $side, // default 'buy',
Float $amount // default 1
): array
$quote = NexoPro::getQuote(
pair: 'BTC/USDT',
amount: 0.001,
side: 'buy'
);
{
"pair": "BTC/USDT",
"amount": "0.001",
"price": "33957.88020000",
"timestamp": 1624452686
}
Last updated