Bitcoin Forum
May 07, 2024, 07:19:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Get average price of cryptocurrency for given timeframe  (Read 147 times)
GreatArkansas (OP)
Legendary
*
Offline Offline

Activity: 2310
Merit: 1345


Buy/Sell crypto at BestChange


View Profile WWW
February 13, 2022, 10:51:45 AM
Merited by OmegaStarScream (3), DdmrDdmr (3)
 #1

I want to ask if is there any way platform where I can get the average price of a particular cryptocurrency or pair for a given time?

Let's say, for example, I want to check the average price of Bitcoin from January 1, 2022  - February 1, 2022?
And I will get the average price of that timeframe.

Thanks!

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
RickDeckard
Legendary
*
Offline Offline

Activity: 1008
Merit: 3007



View Profile
February 13, 2022, 12:10:52 PM
Merited by hugeblack (4), DdmrDdmr (3), OmegaStarScream (1), GreatArkansas (1)
 #2

You can use Investing.com[1] historical information to fetch this kind of information (I'm sure there are other similar websites that do this). For the specific period you mentioned here are the results [USD] :

  • Highest: 47,944.9
  • Lowest: 32,985.6
  • Difference: 14,959.3
  • Average: 41,019.2
  • Change %: -16.2

I'm not sure where do they grab this information from though - they claim that it was gathered from market makers (on their disc lamer message) - so expect to find some discrepancies if you compare these results to other pool of information that you may find elsewhere...

[1]https://uk.investing.com/crypto/bitcoin/historical-data

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
hatshepsut93
Legendary
*
Offline Offline

Activity: 2968
Merit: 2145



View Profile
February 13, 2022, 06:30:16 PM
Merited by OmegaStarScream (2), GreatArkansas (1)
 #3

You can take a public API like coingecko or coinmarketcap, fetch daily prices for a given period and find average as well as median and mode. They provide market data for thousands of coins/tokens and each of them is paired against 50+ currencies. Of course you will need to write a bit of code, but it's like a 20 minute task or so.

.BEST.CHANGE..███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3472
Merit: 6125



View Profile
February 14, 2022, 05:20:09 AM
Merited by GreatArkansas (1)
 #4

It looks like you have the necessary technical background, so you can use Coingecko's API as mentioned above. You don't have to send a request for each date though, This will give you the historical price data within a range of timestamp (UNIX):

Code:
https://api.coingecko.com/api/v3/coins/bitcoin/market_chart/range?vs_currency=usd&from=1643716339&to=1644753139

You then just sum everything and calculate the average yourself.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
crwth
Copper Member
Legendary
*
Offline Offline

Activity: 2758
Merit: 1251


Try Gunbot for a month go to -> https://gunbot.ph


View Profile WWW
February 14, 2022, 06:22:21 AM
 #5

Any idea on how you would use it? Would it be like a baseline towards what you could make a support/resistance on a specific timeframe? Or probably correlating it with data that could've caused a drastic change and made the significant market turn around or something like that?

Would it be something similar to that?

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
slaman29
Legendary
*
Offline Offline

Activity: 2646
Merit: 1212


Livecasino, 20% cashback, no fuss payouts.


View Profile
February 14, 2022, 09:05:24 AM
 #6

Any idea on how you would use it? Would it be like a baseline towards what you could make a support/resistance on a specific timeframe? Or probably correlating it with data that could've caused a drastic change and made the significant market turn around or something like that?

Would it be something similar to that?

Yeah I would think so. It could be something to be used by those who like to think there's a correlation between festive periods for the price of Bitcoin (for example people seem to think Christmas and Lunar New Year have a predictable effect). I think it's been proven wrong already, or at least relies also on which part of the cycle we're at.

Halving would be the most important, but maybe also tax period?

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
GreatArkansas (OP)
Legendary
*
Offline Offline

Activity: 2310
Merit: 1345


Buy/Sell crypto at BestChange


View Profile WWW
February 16, 2022, 02:55:26 AM
 #7

Thanks, everyone for the answers. I am more looking for a tool that is ready to use like I will just input numbers or particular altcoin.


Any idea on how you would use it? Would it be like a baseline towards what you could make a support/resistance on a specific timeframe? Or probably correlating it with data that could've caused a drastic change and made the significant market turn around or something like that?

Would it be something similar to that?
I will just use this to identify my profits on a staking/P2E platform which I am able to earn their utility token. I want to know the price for a given time so I can compute if I already earning profits after my starting capital funds.

Sad to know that most of these are via API and could need some codes to be able to achieve it. I was looking for some ready-to-use tool like I will just input some numbers.

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
crwth
Copper Member
Legendary
*
Offline Offline

Activity: 2758
Merit: 1251


Try Gunbot for a month go to -> https://gunbot.ph


View Profile WWW
February 16, 2022, 03:00:51 AM
 #8

I will just use this to identify my profits on a staking/P2E platform which I am able to earn their utility token. I want to know the price for a given time so I can compute if I already earning profits after my starting capital funds.
I see. So you just want to see it in terms of ~paper profits~ or not the realized position right? Then maybe once you get the actual realization of the profits then you would really see the gains that you have made. I now get why you have to average it.

Why not manually get it but you just have to put in the time? Like get the opening and closing in a candle then depending on what time range you have, that's just the total amount of number as the divisor.

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
tbct_mt2
Hero Member
*****
Offline Offline

Activity: 2310
Merit: 835


View Profile WWW
February 16, 2022, 04:14:04 AM
 #9

I will just use this to identify my profits on a staking/P2E platform which I am able to earn their utility token. I want to know the price for a given time so I can compute if I already earning profits after my starting capital funds.

Sad to know that most of these are via API and could need some codes to be able to achieve it. I was looking for some ready-to-use tool like I will just input some numbers.
You can download data from coinmarketcap or coingecko and make some codes to calculate average prices in your investing time. If it is not Bitcoin or old altcoins, it does not take too much time for you to download price data in historical data tabs.

I think you are aiming at new tokens which launched recent months, not too old altcoins because you are saying about Play to Earn platforms.
hugeblack
Legendary
*
Offline Offline

Activity: 2506
Merit: 3647


Buy/Sell crypto at BestChange


View Profile WWW
February 16, 2022, 09:23:53 AM
Merited by GreatArkansas (1)
 #10

It is difficult to find such a tool for altcoins or altcoin pairs, so if you are looking for it using Bitcoin, you can find some, for example: https://tenyearsbitcoin.com/
So you should do it yourself through APIs and then compare the results, if you are interested why not create a topic in the project development board and I think you will get some help.
or you can try to link some APIs from well known exchanges here --> https://cointracking.info/

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
so98nn
Hero Member
*****
Offline Offline

Activity: 2086
Merit: 603


View Profile
February 24, 2022, 06:00:32 PM
 #11

Any idea on how you would use it? Would it be like a baseline towards what you could make a support/resistance on a specific timeframe? Or probably correlating it with data that could've caused a drastic change and made the significant market turn around or something like that?

Would it be something similar to that?

Even I’m confused why would anyone need that info. Moreover it’s simple to plot the graph against timeline to take an average estimate of the highest and lowest cost of the asset. Though it’s useless if you wanna buy based on the average price because cryptos are never stable on eccentricity prices. They are always fluctuating and I don’t think anyone need to understand this after all these years. Anyways interesting to see the new discussion as it also sparked me one thing, average price could be used to calculate nett income and gross income for thr given time point.
teosanru
Hero Member
*****
Offline Offline

Activity: 2100
Merit: 618


View Profile
February 24, 2022, 07:01:12 PM
 #12

I want to ask if is there any way platform where I can get the average price of a particular cryptocurrency or pair for a given time?

Let's say, for example, I want to check the average price of Bitcoin from January 1, 2022  - February 1, 2022?
And I will get the average price of that timeframe.

Thanks!
Well you should detail your requirement a bit more because the average could be the average of daily closing prices, while it can also be the average of daily prices at a certain time, or it can be average of hourly closing price, all these values could differ a lot from each other. You can easily get daily details from this link:
https://coinmarketcap.com/currencies/bitcoin/historical-data/

You can just copy-paste the same in excel to find the average of closing price to get the average closing price of this time range or any time range.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!