Nexo Pro for PHP
  • ⚡Install
  • Portfolio
    • Get account balances
    • Get pairs
    • Get pair quote
  • Orders
    • Place an order
    • Get order details
    • Get order history
  • Trades
    • Get trades history
  • Credits
Powered by GitBook
On this page
  1. Portfolio

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
Example:
$quote = NexoPro::getQuote(
    pair: 'BTC/USDT',
    amount: 0.001,
    side: 'buy'
);
{
  "pair": "BTC/USDT",
  "amount": "0.001",
  "price": "33957.88020000",
  "timestamp": 1624452686
}
PreviousGet pairsNextPlace an order

Last updated 2 years ago