Bitcoin Forum
January 22, 2018, 07:03:35 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: open price for btc  (Read 827 times)
spy100
Sr. Member
****
Offline Offline

Activity: 240


View Profile
February 11, 2016, 12:58:38 PM
 #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
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1516604615
Hero Member
*
Offline Offline

Posts: 1516604615

View Profile Personal Message (Offline)

Ignore
1516604615
Reply with quote  #2

1516604615
Report to moderator
Jet Cash
Hero Member
*****
Offline Offline

Activity: 770



View Profile WWW
February 11, 2016, 01:22:54 PM
 #2

xe.com provide a current price, and a number of historic graphs.

Are you still posting in the Frog Pond? Visit the board without the sig smoke clouds
Click here for serious discussions about crypto and Bitcoin
spy100
Sr. Member
****
Offline Offline

Activity: 240


View Profile
February 11, 2016, 01:47:07 PM
 #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 ?
-XXIII-
Member
**
Offline Offline

Activity: 112


View Profile
February 11, 2016, 02:46:26 PM
 #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.
Foxpup
Legendary
*
Offline Offline

Activity: 2072



View Profile
February 12, 2016, 04:19:33 AM
 #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.

Will pretend to do unverifiable things (while actually eating an enchilada-style burrito) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
nichu
Full Member
***
Offline Offline

Activity: 154



View Profile
February 12, 2016, 04:48:16 AM
 #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.
unholycactus
Hero Member
*****
Offline Offline

Activity: 1022


https://reg-charity.org/


View Profile WWW
February 12, 2016, 04:50:46 AM
 #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.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!