Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Due to security reasons, the use of the GraphQL playground is closed in production.

This does not affect the receiving and modification of data.

Orderbook request example

using console:

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:

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));

  • No labels