man-c / pycoingecko

Python wrapper for the CoinGecko API
MIT License
1.05k stars 272 forks source link

Help #22

Closed Fede22922 closed 3 years ago

Fede22922 commented 3 years ago

Hi, I'm new on Python programming and i'm going to use pycoingecko. Using the function "cg.get_coin_market_chart_by_id()" when I insert the parameters I don't known what I have to insert in "self". Can someone help me?

man-c commented 3 years ago

Hi,

You don't need to pass anything for 'self'. Just insert the rest parameters.

For example for cg.get_coin_market_chart_by_id:

import pycoingecko
cg = pycoingecko.CoinGeckoAPI()
cg.get_coin_market_chart_by_id(id='bitcoin', vs_currency='eur', days=1)

There are more examples in README.

Fede22922 commented 3 years ago

Thank you very much and sorry for the trivial question

man-c commented 3 years ago

No problem!

Best