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='{}'
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));