s0h3ck / coinpaprika-api-python-client

This library provides convenient way to use Coinpaprika.com API in Python.
https://api.coinpaprika.com/
MIT License
31 stars 10 forks source link

plz help volume24H is 0 ? is it fix? #6

Closed geper closed 2 years ago

geper commented 2 years ago

plz help volume24H is 0 ? is it fix?

s0h3ck commented 2 years ago

Coinpaprika may not have the data of all the cryptocurrencies on the market. Also, I do know the context of your question.

Anyway, taking bitcoin for example, it does work fine.

from coinpaprika import client as Coinpaprika

client = Coinpaprika.Client()

candles = client.candles("btc-bitcoin", start="2022-01-01", limit=30, interval="24h")

for candle in candles:
    print(candle)

Here is a screenshot of the results.

2022-01-18_22-04

This is just a wrapper. The data is provided by Coinpaprika. If they provide no data, feel free to contact their team.

I hope it answers your question. :sunglasses:

geper commented 2 years ago

thank for answer i use client.tickers() https://replit.com/@geper/coinap#main.py image

geper commented 2 years ago

i get all tickers and filters by volume24h

s0h3ck commented 2 years ago

I will repeat myself, but as I said, Coinpaprika is doing something wrong that is not something I can fix. It is Coinpaprika's responsibility at this point.

You can also test and see the experimentation for yourself in the JavaScript library made by someone else.

( async () => {
    const util = require('util');
    const cp = require( 'coinpaprika-js' );

    // Get tickers for all coins (USD,BTC,ETH)
    console.log(JSON.stringify(await cp.tickers(), null, 4));

} )();

2022-01-19_01-25

Nice catch though! :)

geper commented 2 years ago

thank you very much

r--w commented 2 years ago

Hi guys, thank you for the ticket. We heavily optimized our back-end infrastructure and introduced this bug, which is fixed now. Please feel free to contact us at support@coinpaprika.com in case of any further problems. Thank you for using API, you can close this ticket. Radek CEO@Coinpaprika

s0h3ck commented 2 years ago

@r--w Awesome! Ticket closed.