Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
curl -X POST https://demo.marionette.dev/graphql -F operations='{"query": "query($market: String!) { publicOrderBook(market: $market) {buy {price, amount, cumulativeAmount}, sell {price, amount, cumulativeAmount}  }}", "variables": {"market":"ETH-USDT"}}' -F map='{}'

curl -X POST https://demo.marionette.dev/graphql -F operations='{"query": "query($market: String!) { publicOrderBook(market: $market) {buy {price, amount, cumulativeAmount}, sell {price, amount, cumulativeAmount} }}", "variables": {"market":"ETH-USDT"}}' -F map='{}'

using NodeJS code:

Code Block
const axios = require('axios');
axios.post('https://demo.marionette.dev/graphql', {
  query: `query publicOrderBook($market: String!) {
    publicOrderBook(market: $market) {
      buy {price, amount, cumulativeAmount}
      sell {price, amount, cumulativeAmount}
    }
  }`,
  variables: {
    market: "ETH-USDT"
  }
}).then(result => console.log(result.data));

...