Git Product home page Git Product logo

markets's Introduction

OUTDATED

We now provide marketInfo directy from the ZigZag server. You should use those endpoints directy for better performance.

Here is the README: https://github.com/ZigZagExchange/backend

Mainnet: https://zigzag-exchange.herokuapp.com/api/v1/marketinfos?chain_id=1&market=ETH-USDC

Testnet: https://secret-thicket-93345.herokuapp.com/api/v1/marketinfos?chain_id=1000&market=ETH-USDC

ZigZag Markets

Base URL: https://zigzag-markets.herokuapp.com/

Usage

You can specify one or more aliases and a chain for supported markets

curl "https://zigzag-markets.herokuapp.com/markets?id=UNI-USDC&chainid=1"
curl "https://zigzag-markets.herokuapp.com/markets?id=UNI-USDC,ETH-USDC&chainid=1"

Or simply a market ID to grab any market

curl "https://zigzag-markets.herokuapp.com/markets?id=Trz9R2BPwQkXhF_NRMsKv2reX_K3-0sE6tXiH8apz_4"

You can create markets by uploading market info to Arweave through our frontend:

https://trade.zigzag.exchange/list-pair

Sample Response

curl "https://zigzag-markets.herokuapp.com/markets?id=UNI-USDC&chainid=1"

[
  {
    "baseAssetId": "23",
    "quoteAssetId": "2",
    "baseFee": 0.0001,
    "quoteFee": 1,
    "minSize": "0.01",
    "maxSize": "100",
    "zigzagChainId": 1,
    "pricePrecisionDecimal": 2,
    "baseAsset": {
      "id": 23,
      "address": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
      "symbol": "UNI",
      "decimals": 18,
      "enabledForFees": true
    },
    "quoteAsset": {
      "id": 2,
      "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
      "symbol": "USDC",
      "decimals": 6,
      "enabledForFees": true
    },
    "id": "keenBs3m8IykC43dh5GrUmQOnzfJKwNyglQcr7WqtOU",
    "alias": "UNI-USDC"
  }
]

markets's People

Contributors

taureau75 avatar troopercrypto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.