qparas

Crates.ioqparas
lib.rsqparas
version0.1.0
sourcesrc
created_at2022-04-22 05:08:57.107007
updated_at2022-04-22 05:08:57.107007
descriptionQuery the Paras.id API, returning unpaginated JSON data
homepage
repositoryhttps://github.com/miraclx/qparas
max_upload_size
id572024
size207,094
Miraculous Owonubi (miraclx)

documentation

README

QParas

Query the Paras API, returning unpaginated JSON data.

See https://parashq.github.io for a broader list of queries and their respective parameters.

Demo

ASCII Demo

Installation

First, install Rust and Cargo. See https://rustup.rs/.

cargo install qparas

Usage

qparas [query] [params...]

Examples

See https://parashq.github.io for a broader list of queries and their respective parameters.

  • List all tokens for a particular collection that are for sale.

    qparas token-series collection_id=mint.havendao.near min_price=0 __sort=metadata.score::-1
    
    • __sort=metadata.score::-1: Sort by rarity score in descending order.
  • Get the two most recent price updates for a single token.

    qparas activities contract_id=mint.havendao.near token_id=253 type=add_market_data __limit=2 __min=2
    
    • __limit=2: Ask the server to return two results per page.
    • __min=2: Return at least 2 results.
  • Get the 50 most recent activities for a collection.

    qparas collection-activities collection_id=mint.havendao.near __limit=25 __min=50
    
    • __limit=50: Ask the server to return 25 results per page.
    • __min=50: Return at least 50 results.
Commit count: 23

cargo fmt