ttsteiger / cryptocompy

Simple Python 3 wrapper for the public CryptoCompare API.
MIT License
82 stars 36 forks source link

Help - if I change the market in the get_historical_eod_price() - does not work #2

Closed Metaphor31 closed 6 years ago

Metaphor31 commented 6 years ago

Hi,

Thank you for your work,

I have try to get historical prices from different exchanges but it does not change the exchange it seems because the price is all the time the same.

get_historical_eod_price('XMR','USD',start_date_pro111, markets='coinbase', try_conversion=True)

Is it possible to check this ? To get OHLC prices for different exchanges ?

Thanks

Gordon

Metaphor31 commented 6 years ago

Is it possible to check this ? Could you please help me find a solution ? How to get OHLC prices for different exchanges ? or the time of the price end of the day. if I get a price from one exchange I would like to have the time of this price at this exchange so that I can match the time of other prices from other exchanges :)

Thanks Titian

Gordon

Metaphor31 commented 6 years ago

Yes sorry for the time it is obvious because you specify "ts: Unix timestamp"

What about the exchange ?

Metaphor31 commented 6 years ago

get_historical_eod_price('XMR','USD',start_date_pro111, markets='kraken', try_conversion=True) get_historical_eod_price('XMR','USD',start_date_pro111, markets='Bitstamp', try_conversion=True) get_historical_eod_price('XMR','USD',start_date_pro111, markets='Cexio', try_conversion=True) get_historical_eod_price('XMR','USD',start_date_pro111, markets='Coinbase', try_conversion=True) get_historical_eod_price('XMR','USD',start_date_pro111, markets='Coinfloor', try_conversion=True)

give me same values.

Metaphor31 commented 6 years ago

Please could you tell me how to use this : I can't get the good one : essai_get_it=build_url("histoday", fsym=str('XBT'), tsyms=str('USD'), ts=start_date_pro111, markets={'kraken'}, try_conversion=True)

url = build_url("pricehistorical", fsym=fsym, tsyms=tsyms, ts=ts, markets=markets, try_conversion=try_conversion)