GithubHelp home page GithubHelp logo

ziutop / acy-dex-backend-conflux Goto Github PK

View Code? Open in Web Editor NEW

This project forked from acy-labs/acy-dex-backend-conflux

0.0 0.0 0.0 13.88 MB

Shell 0.02% JavaScript 98.00% Python 0.11% TypeScript 0.77% CSS 0.11% HTML 0.30% GLSL 0.69% Dockerfile 0.01%

acy-dex-backend-conflux's Introduction

ACY DEX backend

Swap history data service provider

Run database

docker compose up

Run server

npm run debug

Output

WETH-USDC

localhost:3000/api/chart/swap?token0=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&token1=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2&range=1H


{
  "data": {
    "token0": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "token1": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "range": "1H",
    "swaps": [
      {
        "rate": 2013.8968014791587,
        "time": "2021-07-14T14:57:05.000Z"
      },
      {
        "rate": 2014.2756993286173,
        "time": "2021-07-14T15:02:05.000Z"
      },
      {
        "rate": 1996.9296541749918,
        "time": "2021-07-14T15:07:05.000Z"
      },
      {
        "rate": 2015.7258259140917,
        "time": "2021-07-14T15:11:57.000Z"
      },
      {
        "rate": 2019.5685794840097,
        "time": "2021-07-14T15:17:05.000Z"
      },
      {
        "rate": 2016.6089091921733,
        "time": "2021-07-14T15:21:56.000Z"
      },
      {
        "rate": 2000.72855,
        "time": "2021-07-14T15:27:00.000Z"
      },
      {
        "rate": 2001.251208481726,
        "time": "2021-07-14T15:32:05.000Z"
      },
      {
        "rate": 2015.5327473229408,
        "time": "2021-07-14T15:37:05.000Z"
      },
      {
        "rate": 2005.8991397575212,
        "time": "2021-07-14T15:42:05.000Z"
      },
      {
        "rate": 1999.9592624640088,
        "time": "2021-07-14T15:46:46.000Z"
      },
      {
        "rate": 1998.5083884011722,
        "time": "2021-07-14T15:52:05.000Z"
      },
      {
        "rate": 1998.2888710055352,
        "time": "2021-07-14T15:56:23.000Z"
      }
    ]
  }
}

acy-dex-backend-conflux's People

Contributors

ngjuping 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.