Bitcoin Forum
May 08, 2024, 03:41:05 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: open price for btc  (Read 933 times)
spy100 (OP)
Sr. Member
****
Offline Offline

Activity: 658
Merit: 257


View Profile WWW
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

Be very wary of relying on JavaScript for security on crypto sites. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715182865
Hero Member
*
Offline Offline

Posts: 1715182865

View Profile Personal Message (Offline)

Ignore
1715182865
Reply with quote  #2

1715182865
Report to moderator
Jet Cash
Legendary
*
Offline Offline

Activity: 2702
Merit: 2456


https://JetCash.com


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

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

Offgrid campers allow you to enjoy life and preserve your health and wealth.
Save old Cars - my project to save old cars from scrapage schemes, and to reduce the sale of new cars.
My new Bitcoin transfer address is - bc1q9gtz8e40en6glgxwk4eujuau2fk5wxrprs6fys
spy100 (OP)
Sr. Member
****
Offline Offline

Activity: 658
Merit: 257


View Profile WWW
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: 4354
Merit: 3044


Vile Vixen and Miss Bitcointalk 2021-2023


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 unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
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: 1024



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:  

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