Coder Social home page Coder Social logo

py-dedust-api's Introduction

Python library for working with the DeDust API.

Installation

pip install pydedustapi

import example:

from pydedustapi import Dedust

api = Dedust()

Methods Dedust()

get_liquidity_providers_v1

The endpoint is used to get a list of liquidity providers for a pair.

Parameter Information
address address

Ex:

api.get_liquidity_providers_v1(address)

get_accounts_assets

The endpoint is used to get the list of user assets.

Parameter Information
address address

Ex:

api.get_accounts_assets(address)

get_accounts_trades

The endpoint is used to get the list of trades of an account.

Parameter Information
address address

Ex:

api.get_accounts_trades(address)

get_assets

The endpoint is used to get the list of available assets.

Ex:

api.get_assets()

get_assets_symbol

Parameter Information
symbol symbol

Ex:

api.get_assets_symbol(symbol)

get_gcko_pairs

Provides a summary on trading pairs available to CoinGecko.

Ex:

api.get_gcko_pairs()

get_gcko_tickers

Provides 24-hour pricing and volume information on each available market pair to CoinGecko.

Ex:

api.get_gcko_tickers()

get_gcko_trades

The endpoint is used to return data on historical completed trades for a given market pair.

Parameter Information
ticker_id id
type buy or sell
limit example: 200

Ex:

api.get_gcko_trades(ticker_id, type, limit)

get_jettons_metadata

The endpoint is used to get metadata of the jetton.

Parameter Information
address jetton address

Ex:

api.get_jettons_metadata(address)

get_pools

The endpoint is used to get the list of available pools.

Ex:

api.get_pools()

get_pools_metadata

The endpoint is used to get metadata of the pool.

Parameter Information
address pool address

Ex:

api.get_pools_metadata(address)

get_pools_trades

The endpoint is used to get the list of trades in a pool.

Parameter Information
address pool address

Ex:

api.get_pools_trades(address)

get_prices

The endpoint is used to get the latest price of external assets.

Ex:

api.get_prices()

Methods Tokens()

get_token_price

Parameter Information
symbol token symbol

Available tokens: AAVE, BTC, DAI, ETH, MATIC, SOL, TON, TRX, TUSD, UNI, USDC, USDT, WBTC, stTON, hTON, wsTON.

Ex:

api.get_token_price('TON')

py-dedust-api's People

Contributors

labfunny avatar den-wex avatar

Watchers

 avatar

Forkers

umsf228

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.