Author

Topic: open price for btc (Read 955 times)

legendary
Activity: 1078
Merit: 1024
February 11, 2016, 11:50:46 PM
#7
Whatever script you're using that needs open price can be written to fetch the last trade at 0:00 (Midnight) or whatever time you feel is a proper open price.
This. Currency markets are open 24 hours a day, and don't open and close every day like stock markets do. The "open" price is just the first trade after midnight UTC and the "close" price is just the last trade before midnight. It's completely arbitrary.

i really had no idea that bitcoin markets are open 24 hours a day, may be i am not trading using these coins and  that is the reason i was not aware of this.

People trade Bitcoin worldwide and it isn't controlled by any entity. It's basically always open on every exchange.
full member
Activity: 154
Merit: 100
February 11, 2016, 11:48:16 PM
#6
Whatever script you're using that needs open price can be written to fetch the last trade at 0:00 (Midnight) or whatever time you feel is a proper open price.
This. Currency markets are open 24 hours a day, and don't open and close every day like stock markets do. The "open" price is just the first trade after midnight UTC and the "close" price is just the last trade before midnight. It's completely arbitrary.

i really had no idea that bitcoin markets are open 24 hours a day, may be i am not trading using these coins and  that is the reason i was not aware of this.
legendary
Activity: 4542
Merit: 3393
Vile Vixen and Miss Bitcointalk 2021-2023
February 11, 2016, 11:19:33 PM
#5
Whatever script you're using that needs open price can be written to fetch the last trade at 0:00 (Midnight) or whatever time you feel is a proper open price.
This. Currency markets are open 24 hours a day, and don't open and close every day like stock markets do. The "open" price is just the first trade after midnight UTC and the "close" price is just the last trade before midnight. It's completely arbitrary.
member
Activity: 112
Merit: 10
February 11, 2016, 09:46:26 AM
#4
xe.com provide a current price, and a number of historic graphs.

not related to what i want

for example on btc-e

"high":389.44901
"low":380.04999
"avg":384.7495
"last":381.655
"vol_cur":7174.79211

how do i get
"open price" or any way to calculate it ?

Whatever script you're using that needs open price can be written to fetch the last trade at 0:00 (Midnight) or whatever time you feel is a proper open price. Bitcoinwisdom does this, on their homepage it shows "Today", being the open price (in %+/-), but I don't believe they have an API. If the script isn't a daemon, you might have to write a separate script and have it run by cron for your static script to handle separately.
sr. member
Activity: 658
Merit: 257
February 11, 2016, 08:47:07 AM
#3
xe.com provide a current price, and a number of historic graphs.

not related to what i want

for example on btc-e

"high":389.44901
"low":380.04999
"avg":384.7495
"last":381.655
"vol_cur":7174.79211

how do i get
"open price" or any way to calculate it ?
legendary
Activity: 2828
Merit: 2472
https://JetCash.com
February 11, 2016, 08:22:54 AM
#2
xe.com provide a current price, and a number of historic graphs.
sr. member
Activity: 658
Merit: 257
February 11, 2016, 07:58:38 AM
#1
hi all

I am trying to get the open price for btc/usd from https://btc-e.com/api/3/ticker/btc_usd

As you can see in the ticker they don't offer that any way to calculate the open price from the data they provide

They give last price as close price ,any way to get open price ?

Thank you
Jump to: