Bitcoin Forum
April 27, 2018, 03:34:43 AM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   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
Merit: 250


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.
1524800083
Hero Member
*
Offline Offline

Posts: 1524800083

View Profile Personal Message (Offline)

Ignore
1524800083
Reply with quote  #2

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

Activity: 868
Merit: 816


Satan's Slave


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

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

Don't drink and drive ==>> Click here to find out why
spy100
Sr. Member
****
Offline Offline

Activity: 240
Merit: 250


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
Merit: 10


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
*
Online Online

Activity: 2156
Merit: 1049



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
Merit: 100



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
Legendary
*
Offline Offline

Activity: 1078
Merit: 1021


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!