Quote

Quote the current bid and ask for a currency pair and size.

Consider requesting an indicative quote to understand the current currency trading rates before deciding to take action. Please be aware that market makers are not required to honor indicative quotes.

Paste this query to the API Playground to request an indicative quote.

const bodyJSON = {
  variables:{
    input:{
      fromCurrency:"AUD",
      toCurrency:"USD",
      size:"10000",
      currency:"AUD",
    },
  },
  query: `
query ($input: QuoteInput!) { 
  quote(input: $input) {   
    bid ask symbol timestamp inverted 
  }
  }`,
};

In contrast to an indicative quote, a tradable quote is guaranteed by the market maker.

Paste this query to the GraphQL Playground to request a tradable quote. It is important to consider the expireAt date and time, and preserve the id of a tradable quote for future createPayment and createConversion calls.

const bodyJSON = {
  variables:{
    input:{
      fromCurrency:"AUD",
      toCurrency:"USD",
      size:"10000",
      currency:"AUD",
      tradable: true,
    },
  },
  query: `
query ($input: QuoteInput!) { 
  quote(input: $input) {   
    bid ask symbol timestamp inverted expireAt id
  }
  }`,
};

Last updated

Was this helpful?