Coder Social home page Coder Social logo

1inch / dexcandles Goto Github PK

View Code? Open in Web Editor NEW
25.0 6.0 18.0 74 KB

DEX trades candles (5m/15m/1h/4h/1d/1w)

Home Page: https://thegraph.com/explorer/subgraph/1inch-exchange/dexcandles

License: GNU General Public License v3.0

TypeScript 100.00%
dex ethereum thegraph subgraph tradingview

dexcandles's Introduction

DEX Candles Subgraph

This subgraph tracks all the DEX trades with 5m/15m/1h/4h/1d/1w candles.

Protocols

  • Uniswap V2
  • Uniswap V1
  • Mooniswap
  • 1inch Liquidity Protocol 1.0
  • 1inch Liquidity Protocol 1.1
  • Kyber Network
  • Bancor Network
  • 0x Protocol (excluding private orders)
  • Oasis

Example

Query 1h candles (3600 seconds) for first week of 2021: 2020-01-01 (1609459200) - 2020-01-07 (1609977600):

{
    candles(where: {period: 3600, time_in: [1609459200, 1609977600]}) {
        id
        time
        open
        close
        low
        high
        token0TotalAmount
        token1TotalAmount
    }
}

Schema

type Candle @entity {
    id: ID! # time + period + srcToken + dstToken
    time: Int!
    period: Int!
    token0TotalAmount: BigInt!
    token1TotalAmount: BigInt!
    open: BigDecimal!
    close: BigDecimal!
    low: BigDecimal!
    high: BigDecimal!
}

dexcandles's People

Contributors

k06a avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dexcandles's Issues

What DEX's are supported?

What DEX's are supported? It's confusing because there is a check mark next to UniswapV2. It's also unclear how to run a query for pairs.

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.