Skip to content

Latest commit

 

History

History
42 lines (37 loc) · 608 Bytes

quote.md

File metadata and controls

42 lines (37 loc) · 608 Bytes
description
Quote the current bid and ask for a currency pair and size.

Quote

Paste this query to the GraphQL Playground

{% tabs %} {% tab title="Query" %}

{
  quote(
    input: { fromCurrency: AUD, toCurrency: USD, size: 10000, currency: AUD }
  ) {
    bid
    ask
    symbol
    timestamp
    inverted
  }
}

{% endtab %}

{% tab title="Response" %}

{
  "data": {
    "quote": {
      "bid": 0.61104,
      "ask": 0.62077,
      "symbol": "USDAUD",
      "timestamp": "2018-08-13T07:54:54.993Z",
      "inverted": true
    }
  }
}

{% endtab %} {% endtabs %}