Bitcoin knackt die 20.000-Dollar-Marke ZDNet.de

[ANN] CoinDesk launches proprietary Bitcoin Price Index (BPI)

[ANN] CoinDesk launches proprietary Bitcoin Price Index (BPI) submitted by bitkeef to Bitcoin [link] [comments]

Bitcoin Price Notifier

I have written a very simple bitcoin notifier script. Every minute (or time you chose) the script will look up the live price of bitcoin and tell you if it is up or down, by how much, and read out the price via computer voice. You can just leave it running and minimize the window.
https://www.millersecurityresearch.com/articles/Lets_Code_Bitcoin_Price_Notifier.php
Edit: A lot of people wanted it to play You Suffer from Napalm Death... so if the price drops more that 25$ it will now play.
Here you go:
Add-Type -AssemblyName System.Speech $Voice = New-Object System.Speech.Synthesis.SpeechSynthesizer $Napalm = "https://millersecurityresearch.com/files/scripts/sounds/Napalm%20Death%20-%20You%20Suffer.mp3" $Path = $Env:Temp + "\Napalm Death - You Suffer.mp3" $Webclient = New-Object System.Net.WebClient $Webclient.DownloadFile($Napalm, $Path) Add-Type -AssemblyName presentationCore $MediaPlayer = New-Object system.windows.media.mediaplayer $MediaPlayer.open($Path) $Response = Invoke-WebRequest -URI "https://api.coindesk.com/v1/bpi/currentprice.json" | ConvertFrom-Json $StartingRate = $Response.bpi.USD.rate Write-Host "Starting BTC: $StartingRate" While (0 -lt 1){ Start-Sleep -Seconds 600 $Response = Invoke-WebRequest -URI "https://api.coindesk.com/v1/bpi/currentprice.json" | ConvertFrom-Json $CurrentRate = $Response.bpi.USD.rate If($StartingRate -gt $CurrentRate){ $Difference = $StartingRate - $CurrentRate If($Difference -gt 25){ $MediaPlayer.Play() Start-Sleep -Seconds 2 } $Voiceoutput = "Bitcoin Down by " + $Difference + " Dollars to " + $CurrentRate -replace ".{5}$" $Voice.Speak($Voiceoutput) Write-Host "Current BTC: $CurrentRate - Down" } If($StartingRate -lt $CurrentRate){ $Difference = $StartingRate - $CurrentRate $Voiceoutput = "Bitcoin Up by" + $Difference + " Dollars to " + $CurrentRate -replace ".{5}$" $Voice.Speak($Voiceoutput) Write-Host "Current BTC: $CurrentRate - Up" } If($StartingRate -eq $CurrentRate){ $VoicedRate = $CurrentRate -replace ".{5}$" $Voiceoutput = "Bitcoin same at " + $VoicedRate + " Dollars" $Voice.Speak($Voiceoutput) Write-Host "Current BTC: $CurrentRate" } $StartingRate = $CurrentRate } 

submitted by coldmateplus to PowerShell [link] [comments]

Bitcoin Price Notifier

I have written a very simple bitcoin notifier script. Every minute (or time you chose) the script will look up the live price of bitcoin and tell you if it is up or down, by how much, and read out the price via computer voice. You can just leave it running and minimize the window.
https://www.millersecurityresearch.com/articles/Lets_Code_Bitcoin_Price_Notifier.php
Edit: A lot of people wanted it to play You Suffer from Napalm Death... so if the price drops more that 25$ it will now play.
Here you go:
Add-Type -AssemblyName System.Speech $Voice = New-Object System.Speech.Synthesis.SpeechSynthesizer $Napalm = "https://millersecurityresearch.com/files/scripts/sounds/Napalm%20Death%20-%20You%20Suffer.mp3" $Path = $Env:Temp + "\Napalm Death - You Suffer.mp3" $Webclient = New-Object System.Net.WebClient $Webclient.DownloadFile($Napalm, $Path) Add-Type -AssemblyName presentationCore $MediaPlayer = New-Object system.windows.media.mediaplayer $MediaPlayer.open($Path) $Response = Invoke-WebRequest -URI "https://api.coindesk.com/v1/bpi/currentprice.json" | ConvertFrom-Json $StartingRate = $Response.bpi.USD.rate Write-Host "Starting BTC: $StartingRate" While (0 -lt 1){ Start-Sleep -Seconds 600 $Response = Invoke-WebRequest -URI "https://api.coindesk.com/v1/bpi/currentprice.json" | ConvertFrom-Json $CurrentRate = $Response.bpi.USD.rate If($StartingRate -gt $CurrentRate){ $Difference = $StartingRate - $CurrentRate If($Difference -gt 25){ $MediaPlayer.Play() Start-Sleep -Seconds 2 } $Voiceoutput = "Bitcoin Down by " + $Difference + " Dollars to " + $CurrentRate -replace ".{5}$" $Voice.Speak($Voiceoutput) Write-Host "Current BTC: $CurrentRate - Down" } If($StartingRate -lt $CurrentRate){ $Difference = $StartingRate - $CurrentRate $Voiceoutput = "Bitcoin Up by" + $Difference + " Dollars to " + $CurrentRate -replace ".{5}$" $Voice.Speak($Voiceoutput) Write-Host "Current BTC: $CurrentRate - Up" } If($StartingRate -eq $CurrentRate){ $VoicedRate = $CurrentRate -replace ".{5}$" $Voiceoutput = "Bitcoin same at " + $VoicedRate + " Dollars" $Voice.Speak($Voiceoutput) Write-Host "Current BTC: $CurrentRate" } $StartingRate = $CurrentRate } 

submitted by coldmateplus to Bitcoin [link] [comments]

Just typing "BTC" in the start menu of Win 10 gives the price in your Local Currency

Just typing submitted by Devam13 to Bitcoin [link] [comments]

How to send api requests in real time in JS?

With this XHR request it would only send request once, if this is done with setTimeout it can repeatedly send request but how to do that in real time? Like on some websites we can see real time bitcoin prices. I read about EventSource but can't understand how it's used.

var xhr = new XMLHttpRequest() xhr.onload = function(){ if(this.status == 200){ document.write(this.responseText)' } } xhr.open("GET","https://api.coindesk.com/v1/bpi/currentprice/USD.json",true); xhr.send(); 
submitted by Ok-Use to learnprogramming [link] [comments]

Bitcoin Hits 5-Month High Following Fed Chair Powell’s Privacy Praise

Bitcoin Hits 5-Month High Following Fed Chair Powell’s Privacy Praise


Bitcoin’s (BTC) price is trending solidly back above the 5-digit figure mark.
At around 15:00 UTC on Feb. 11, the price of BTC rose back above $10,000 from around $9,850 to $10,351 within an hour after succumbing to a small sell-off beneath the $10,000 level on Feb 10, CoinDesk BPI data shows.
The peak figure represents BTC’s highest point in over five months and offers a shift in trend from bearish-to-bullish in the mid-term as it continues to print new highs in 2020.
The recent rise in BTC’s price comes amid Federal Reserve Chairman Jerome Powell’s testimony to the U.S. House Financial Services Committee on Tuesday in which he discussed the need for privacy amongst digital currencies when eyeing through the lens of China's digital yuan.
"A ledger where you know everybody's payments is not something that would be particularly attractive in the context of the U.S.," Powell told the committee.
submitted by bro0783 to u/bro0783 [link] [comments]

BittyTax - New open source project for cryptoasset accounting/audit/tax tools

BittyTax - New open source project for cryptoasset accounting/audit/tax tools

BittyTax
I wrote this code last year to do my own tax return as at the time there was nothing available for UK tax rules. I decided to make it open source here https://github.com/BittyTax/BittyTax.
It’s command line tools only at the moment, but I’m working on next version which will integrate directly into Excel to make it a bit easier to use.
I've done a lot of testing and some friends have used it for their tax returns, but bear in mind it is still in beta.
If you get any problems or there's any feature you would like added, please raise an issue here.
It currently handles these data file formats:
Wallets:
  • Electrum
  • Ledger Live
  • Qt Wallet (i.e. Bitcoin Core)
  • Trezor
Exchanges:
  • Binance
  • Bitstamp
  • Bittrex
  • ChangeTip
  • Circle
  • Coinbase
  • Coinbase Pro
  • Coinfloor
  • Cryptopia
  • Cryptsy
  • Gatehub
  • OKEx
  • Poloniex
  • TradeSatoshi
  • Uphold
  • Wirex
Explorers:
  • Etherscan
Historic price data for fiat/crypto are taken from these sources:
submitted by nanonanouk to BitcoinUK [link] [comments]

My simple bot stops running after a few hours [AWS EC2].

I finally got my python bot working great, all it does is take the current price of bitcoin (plus a few others) and put it into the sidebar. It updates every 60 seconds.
It is running on AWS EC2, on a linux instance. I can run it just fine, and it seems to run for a dozen hours or something like that. For some reason, it stops randomly, despite the python script being designed to repeat indefinitely.
I have to restart it every once in a while, and I can't figure out why. Any help would be appreciated!
Here it the code in my ccbot.py file, with the passwords edited out:
import time import praw import requests from decimal import Decimal USER_AGENT = 'cryptocurrencies ticker bot by u/washyourclothes' REDDIT_USERNAME = 'CryptoCurrenciesMod' SUBREDDIT_NAME = 'cryptocurrencies' class TickerBot: def __init__(self): self.client = praw.Reddit( client_id='edited', client_secret='edited', refresh_token='edited', user_agent='cryptocurrencies ticker bot by u/washyourclothes' ) self.last_ticker_update = 0.0 def run(self): while True: if time.time() - self.last_ticker_update >= 60.0: self.main() self.last_ticker_update = time.time() time.sleep(1.0) def main(self): req = requests.get('https://api.coindesk.com/v1/bpi/currentprice.json') req = req.json() btcprice = req['bpi']['USD']['rate'] rounded_price = round(Decimal(btcprice.replace(",", "")), 0) btcticker = '1 BTC = $' + str(rounded_price) req = requests.get('https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=usd') req = req.json() ethprice = req['ethereum']['usd'] ethticker = '1 ETH = $' + str(ethprice) req = requests.get('https://api.coingecko.com/api/v3/simple/price?ids=ripple&vs_currencies=usd') req = req.json() xrpprice = req['ripple']['usd'] rounded_xrp = round(Decimal(xrpprice), 3) xrpticker = '1 XRP = $' + str(rounded_xrp) req = requests.get('https://api.coingecko.com/api/v3/simple/price?ids=litecoin&vs_currencies=usd') req = req.json() ltcprice = req['litecoin']['usd'] ltcticker = '1 LTC = $' + str(ltcprice) r = praw.Reddit(client_id='edited', client_secret='edited', password='edited', user_agent='cryptocurrencies ticker bot by u/washyourclothes', username='CryptoCurrenciesMod') old_sidebar = r.subreddit('cryptocurrencies').mod.settings()['description'] sidebar = old_sidebar.partition("[](/trg)")[0] r.subreddit('cryptocurrencies').mod.update(description= sidebar + '[](/trg)' + '[' + btcticker + '](https://www.coindesk.com/price/bitcoin)' + '[' + ltcticker + '](https://www.coindesk.com/price/litecoin)' + '[' + ethticker + '](https://www.coindesk.com/price/ethereum)' + '[' + xrpticker + '](https://www.coindesk.com/price/xrp)') if __name__ == '__main__': bot = TickerBot() bot.run() 
The above ccbot.py file is uploaded to my AWS EC2 instance, and I run it using 'nohup python3 ccbot.py &' so that I can shut down my computer and it keeps it running. But for some reason, it only runs for a while. Not exactly sure how long but I ran it last night, it worked fine most of the night, but maybe about 7 or 8 hours after I started it, it stopped running.
submitted by washyourclothes to RequestABot [link] [comments]

[For Hire] I will draw you a pretty picture :D

[For Hire] I will draw you a pretty picture :D
I am an architecture student offering my services to anyone who is interested.
I work traditionally (pen, pencil, ink ... ) scan my work and then can adjust it via Photoshop or Illustrator. I specialize in environment, characters , storyboard panels and machines among other (I don't draw caricatures... I don't know how).
I offer 3 types of services:
  1. Scanned work ( 9 EUR / hour) - work below took from 30 minutes up to 6 hours.
  2. Light digitally altered work ( 10 EUR / hour) - Photoshop use , it takes me extra 1 hour up to 4 hours.
    1. Light alteration : contrast, white balance, minor adjustments
    2. Heavier alteration: textured photo bashing. This takes a looot
  3. Heavy digitally altered work( 11 EUhour) - doing all line work in Illustrator, this can take up to 5 hours.
  4. Traditional work( 10 EUR / hour + shipping ) - I will send you an original work via DHL.
Accepted currencies for payment are determined by default wallet for Trezor Uno , and price of currency is determined by yesterdays close price. Current price is in bitcoin since I couldn't find any open API to show yesterdays price for other currencies.
Among typical uses for my services, I can draw an custom coloring book for your child, draw you as comic book character, do a story board for your add, office joke in comic book page format or (since my formal education allows me) an blueprint of furniture from a picture and custom furniture designs.
You can expect finished product in a week or month depending on workload on which you will be warned in advance. And depending on the type of job these are following steps:
  1. Drawing job: You will fill a small form (regarding job requirements) and from that you will agree on the price , and a constant crypto price (this will not change until we finish). If you are happy with agreement, you will then pay half in advance (for supplies) and the rest on the completion.
  2. Architectural job: You will fill small form (regarding job requirements, your unique desires and your behavior pattern) on which we will agree on the price, and a constant crypto price. You will then pay half in advance, and the rest on completion.

Example Works are all A5 format done under 1.5 hours:
gallery
Creature Example [NSFW] Belphegor - reference bible Belphegor

Disclaimer: Please don't steal artworks, they are pad byte signed, steno graphically signed and watermarked. Of course I have no issue with you posting the work, but please mention where you got them and credit the author, and I have no issue if you wan't to redraw them - but still credit original information.
I hope you are having a great day! :D
submitted by ArchDan to artcommissions [link] [comments]

How to send api requests in real time in JS?

With this XHR request it would only send request once, if this is done with setTimeout it can repeatedly send request but how to do that in real time? Like on some websites we can see real time bitcoin prices. I read about EventSource but can't understand how it's used.

var xhr = new XMLHttpRequest() xhr.onload = function(){ if(this.status == 200){ document.write(this.responseText)' } } xhr.open("GET","https://api.coindesk.com/v1/bpi/currentprice/USD.json",true); xhr.send(); 
submitted by Ok-Use to learnjavascript [link] [comments]

Oneliner to get local balance (wallet+channels) on your lnd node. Make it better!

#!/bin/bash wallet_balance=$(lncli walletbalance |grep total_balance | cut -d ':' -f 2 |awk -F'"' '{print $2}');local_balance_on_channels=$(lncli listchannels |grep local_balance | cut -d ':' -f 2 |awk -F'"' '{print $2}' | awk '{s+=$1} END {printf "%.0f\n", s}');price=$(curl -s http://api.coindesk.com/v1/bpi/currentprice.json | python -c "import json, sys; bitcoin=json.load(sys.stdin); print(bitcoin['bpi']['USD']['rate_float'])") ; result_sat=$(echo "$wallet_balance+$local_balance_on_channels"|bc -l);result_usd=$(echo "($result_sat*$price)/100000000"|bc -l); printf "%.0f sats - $%.2f\n" $result_sat $result_usd 
submitted by ImpudicusFungus to Bitcoin [link] [comments]

[Android] Trying to get an Async example code working

So I am following a tutorial to help me understand Async tasks in Android. I already have an application that fetches Bitcoin info from an API which works. There is also progress_bar which runs when my network request is made. Also, ignore the comments and log tags having Github. I was using code from another tutorial initially and changed it around for Bitcoin.
At the bottom, I added the Async code from the tutorial. But when I run it instead of having the progress bar increment its progress every 1 second nothing happens. I also notice the function startAsyncTask is never called. I am trying to figure out how one would go about calling an Async task?
import java.lang.ref.WeakReference; import okhttp3.OkHttpClient; import okhttp3.logging.HttpLoggingInterceptor; import retrofit2.Call; import retrofit2.Callback; import retrofit2.Response; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; public class MainActivity extends AppCompatActivity { private Button button; private ProgressBar progress_bar; private ProgressBar progress_bar_fake; private TextView time_textview; private TextView usd_textview; private TextView eur_textview; private TextView gbp_textview; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button = findViewById(R.id.retrofit_button); progress_bar = findViewById(R.id.progress_bar); progress_bar_fake = findViewById(R.id.progress_bar_fake); time_textview = findViewById(R.id.time_textview); usd_textview = findViewById(R.id.usd_textview); eur_textview = findViewById(R.id.eur_textview); gbp_textview= findViewById(R.id.gbp_textview); progress_bar.setVisibility(View.INVISIBLE); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // Code here executes on main thread after user presses button progress_bar.setVisibility(View.VISIBLE); String API_BASE_URL = "https://api.coindesk.com"; OkHttpClient.Builder httpClient = new OkHttpClient.Builder(); HttpLoggingInterceptor logging = new HttpLoggingInterceptor(); // set your desired log level logging.setLevel(HttpLoggingInterceptor.Level.BODY); // add your other interceptors … // add logging as last interceptor httpClient.addInterceptor(logging); // <-- this is the important line! Retrofit.Builder builder = new Retrofit.Builder() .baseUrl(API_BASE_URL) .addConverterFactory( GsonConverterFactory.create() ); Retrofit retrofit = builder .client( httpClient.build() ) .build(); // Create a very simple REST adapter which points the GitHub API endpoint. RESTInterface client = retrofit.create(RESTInterface.class); // Fetch a list of the Github repositories. Call call = client.getBitcoin(); //Log.d("GITHUB", String(call.request().url())); // Execute the call asynchronously. Get a positive or negative callback. call.enqueue(new Callback() { @Override public void onResponse(Call call, Response response) { // The network call was a success and we got a response // TODO: use the repository list and display it response.body(); Log.d("GITHUB", "RESPONSE SUCCESS"); Log.d("GITHUB", response.message()); Log.d("GITHUB", response.body().toString()); Log.d("GITHUB", response.raw().toString()); Log.d("GITHUB", response.body().toString()); time_textview.setText("Time: " + response.body().getTime().getUpdated()); usd_textview.setText("USD: " + response.body().getBpi().getUSD().getRate()); eur_textview.setText("EUR: " + response.body().getBpi().getEUR().getRate()); gbp_textview.setText("GBP: " + response.body().getBpi().getGBP().getRate()); progress_bar.setVisibility(View.INVISIBLE); } @Override public void onFailure(Call call, Throwable t) { // the network call was a failure t.printStackTrace(); // TODO: handle error Log.d("GITHUB", "RESPONSE FAILED"); progress_bar.setVisibility(View.INVISIBLE); } }); } }); } public void startAsyncTask(View v){ ExampleAsyncTask task = new ExampleAsyncTask(this); Log.d("ASYNC", "ASYNC STARTED"); task.execute(10); } private static class ExampleAsyncTask extends AsyncTask{ private WeakReference  activityWeakReference; ExampleAsyncTask(MainActivity activity) { activityWeakReference = new WeakReference(activity); } @Override protected void onPreExecute() { super.onPreExecute(); MainActivity activity = activityWeakReference.get(); if (activity == null || activity.isFinishing()){ return; } activity.progress_bar_fake.setVisibility(View.VISIBLE); Log.d("ASYNC", "We at PreExecute"); } protected String doInBackground(Integer... integers) { for (int i = 0; i < integers[0]; i++){ publishProgress((i*100)/integers[0]); Log.d("ASYNC", "We at doInBackground"); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } return "Finished!"; } @Override protected void onProgressUpdate(Integer... values) { super.onProgressUpdate(values); MainActivity activity = activityWeakReference.get(); if (activity == null || activity.isFinishing()){ return; } Log.d("ASYNC", "We at onProgressUpdate"); activity.progress_bar_fake.setProgress(values[0]); } @Override protected void onPostExecute(String s) { super.onPostExecute(s); MainActivity activity = activityWeakReference.get(); if (activity == null || activity.isFinishing()){ return; } Log.d("ASYNC", "We at onPostExecute"); Toast.makeText(activity, s, Toast.LENGTH_SHORT).show(); activity.progress_bar_fake.setProgress(0); activity.progress_bar_fake.setVisibility(View.INVISIBLE); } } } 
submitted by Fhy40 to learnprogramming [link] [comments]

My simple bot stops running after a few hours [AWS EC2].

I finally got my python bot working great, all it does is take the current price of bitcoin (plus a few others) and put it into the sidebar. CSS then moves it into the header. It updates every 60 seconds.
It is running on AWS EC2, on a linux instance. I can run it just fine, and it seems to run for a dozen hours or something like that. For some reason, it stops randomly, despite the python script being designed to repeat indefinitely.
I have to restart it every once in a while, and I can't figure out why. Is there some limit it is reaching, either from reddit or AWS? Is there something wrong with my script? Any help would be appreciated!
Here it the code in my ccbot.py file, with the passwords edited out:
import time import praw import requests from decimal import Decimal USER_AGENT = 'cryptocurrencies ticker bot by u/washyourclothes' REDDIT_USERNAME = 'CryptoCurrenciesMod' SUBREDDIT_NAME = 'cryptocurrencies' class TickerBot: def __init__(self): self.client = praw.Reddit( client_id='edited', client_secret='edited', refresh_token='edited', user_agent='cryptocurrencies ticker bot by u/washyourclothes' ) self.last_ticker_update = 0.0 def run(self): while True: if time.time() - self.last_ticker_update >= 60.0: self.main() self.last_ticker_update = time.time() time.sleep(1.0) def main(self): req = requests.get('https://api.coindesk.com/v1/bpi/currentprice.json') req = req.json() btcprice = req['bpi']['USD']['rate'] rounded_price = round(Decimal(btcprice.replace(",", "")), 0) btcticker = '1 BTC = $' + str(rounded_price) req = requests.get('https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=usd') req = req.json() ethprice = req['ethereum']['usd'] ethticker = '1 ETH = $' + str(ethprice) req = requests.get('https://api.coingecko.com/api/v3/simple/price?ids=ripple&vs_currencies=usd') req = req.json() xrpprice = req['ripple']['usd'] rounded_xrp = round(Decimal(xrpprice), 3) xrpticker = '1 XRP = $' + str(rounded_xrp) req = requests.get('https://api.coingecko.com/api/v3/simple/price?ids=litecoin&vs_currencies=usd') req = req.json() ltcprice = req['litecoin']['usd'] ltcticker = '1 LTC = $' + str(ltcprice) r = praw.Reddit(client_id='edited', client_secret='edited', password='edited', user_agent='cryptocurrencies ticker bot by u/washyourclothes', username='CryptoCurrenciesMod') old_sidebar = r.subreddit('cryptocurrencies').mod.settings()['description'] sidebar = old_sidebar.partition("[](/trg)")[0] r.subreddit('cryptocurrencies').mod.update(description= sidebar + '[](/trg)' + '[' + btcticker + '](https://www.coindesk.com/price/bitcoin)' + '[' + ltcticker + '](https://www.coindesk.com/price/litecoin)' + '[' + ethticker + '](https://www.coindesk.com/price/ethereum)' + '[' + xrpticker + '](https://www.coindesk.com/price/xrp)') if __name__ == '__main__': bot = TickerBot() bot.run() 
The above ccbot.py file is uploaded to my AWS EC2 instance, and I run it using 'nohup python3 ccbot.py &' so that I can shut down my computer and it keeps it running. But for some reason, it only runs for a while. Not exactly sure how long but I ran it last night, it worked fine most of the night, but maybe about 7 or 8 hours after I started it, it stopped running.
submitted by washyourclothes to botwatch [link] [comments]

Sources for Bitcoin price

Where is the authoritative source for the Bitcoin price?
Well, there isn't one.
So differences in price for bitcoin occur at different marketplaces ... just as the price of a tomato is different at different grocery markets.
There are various methods that attempt to consider various marketplaces to come up with a more sane, commonly available price.
For instance, Coindesk has their "Bitcoin Price Index", which they suggest the symbol XBP, and the method it is calculated is shown here:
CoinDesks's BPI is used by a number of financial media (e.g., Bloomberg/WJS) and trading products.
There's also the BraveNewCoin's BItcoin Liquid Index (BLX):
The BLX is used by NASDAQ.
The CME has its own "prices", BRR (Bitcoin Reference Rate) -- the "closing price" used for daily settlements, and BRTI (Bitcoin Real-time Index):
MVIS:
TradeBlock (XBX):
BitcoinAverage:
CoinTelegraph:
MVIS:
CoinMarketCap:
Messari OnChainFX:
Nomics:
Winkdex:
NYSE (NYXBT):
Others:
Charts:
Basket / Altcoin indexes:
Related:
submitted by cointastical to CryptoMarkets [link] [comments]

PowerShell dashboard no graph

Hi i am currently getting started with the PowerShell Dashboards , and i made this script to track bitcoin price from an api. I dont know what's wrong here. I am not able to see the graph in the UI. I can see network calls resulting with the data.
$apiUrl = "https://api.coindesk.com/v1/bpi/currentprice.json" $usd = $data.USD.rate $Dashboard = New-UDDashboard -Title "Simple Dashboard" -Content { New-UDLayout -Columns 1 -Content { New-UDRow -Columns { New-UDColumn -SmallOffset 2 New-UDCOlumn -SmallSize 4 -Content { New-UDMonitor -Title "USD" -Type Bar -DataPointHistory 5 -Endpoint { Invoke-WebRequest -Uri $apiUrl -Method Get | Select-Object -ExpandProperty Content | ConvertFrom-Json | Select-Object -ExpandProperty bpi | Select-Object -ExpandProperty USD | Select-Object -ExpandProperty rate | Out-UDMonitorData } New-UDMonitor -Title "EUR" -Type Bar -DataPointHistory 5 -Endpoint { Invoke-WebRequest -Uri $apiUrl -Method Get | Select-Object -ExpandProperty Content | ConvertFrom-Json | Select-Object -ExpandProperty bpi | Select-Object -ExpandProperty EUR | Select-Object -ExpandProperty rate | Out-UDMonitorData } } } } } Get-UDDashboard | Stop-UDDashboard Start-UDDashboard -Dashboard $Dashboard -Port 5854 
} Get-UDDashboard | Stop-UDDashboard Start-UDDashboard -Dashboard $Dashboard -Port 5854
Here's my UI
UI
submitted by hariharan618 to PowerShell [link] [comments]

Why am i getting "Undifined" in this prop?

Hey i am passing 2 values from my blade template to a vue component. The 1st one is an integer and it works fine but the string is giving me the value of undifined. This is my code:


The coin field should just say Bitcoin. It's stored as "varchar(191)utf8mb4_unicode_ci "
The title should be "undefined" sorry for the typo.
submitted by anon123346 to vuejs [link] [comments]

Guess the price at midnight and win 100,000 bits!

This bitcoin giveaway has concluded (It's already 2015 in Australia!). Congrats to hodlgentlemen who guessed $379.29, which was the closest (across reddit, twitter and facebook) to the actual AUD price of $379.3034.
Thanks to everyone for playing from Living Room of Satoshi!
A Media Release with full details is published at https://www.livingroomofsatoshi.com/media
---- Original Post below ----
Bitcoin Giveaway from Living Room of Satoshi!
Guess the AUD (Australian) price at midnight and win 100,000 bits!
Reply with your guess before 11:45PM AEDT Sydney Time (which is 12:45 PM GMT or 7:45 AM USA EST).
Rules:
EDIT: Added time zones
submitted by braid_guy to Bitcoin [link] [comments]

neodepot - New website - Track NEO and NeoGas holdings, profits/losses | Calculate NeoGas | more to come

Hello NEO community
I am happy to announce that my new website http://neodepot.org is live. I was working on neodepot for some time and now finally present it to you.
My motivation for this project was not only addiction to NEO. Learning new programming languages and getting more insights about blockchains (especially NEO's) has made up a big part.
 
Facts about neodepot.org
 
More is to come (e.g. several statistics) and if you have questions, ideas for new features or if you find bugs, please contact me or comment here.
Regarding new websites, I am very excited to see the new NEO website neo.org online soon.
I hope you like http://neodepot.org. Thank you all for your feedback and have a nice day.
submitted by kokahunter to NEO [link] [comments]

Can't get a small script to work anymore (Been starting to learn JSON) - Python3.

Hello. I wrote a script in Trinket.io last week.
I saved it to notepad++. When I pasted it back in today I get a whole host of errors. I am 99.9% sure it worked last week and nothing has changed.
Any ideas?
CODE #!/bin/python3
import json import time import urllib.request while True: url = 'https://api.coindesk.com/v1/bpi/currentprice.json' response = urllib.request.urlopen(url) result = json.loads(response.read()) bpi_json = result['bpi'] curr_json = bpi_json['GBP'] curr_price_json = curr_json["rate_float"] print ("The current price of bitcoin = "+str(int(curr_price_json))) if int(curr_price_json) < 8000: print ("buy some bitcoins you fucking idiot!!!") time.sleep(60) 
Output:
Traceback (most recent call last): File "/tmp/sessions/62ca088620b216f1/main.py", line 10, in response = urllib.request.urlopen(url) File "/uslib/python3.5/urllib/request.py", line 163, in urlopen return opener.open(url, data, timeout) File "/uslib/python3.5/urllib/request.py", line 472, in open response = meth(req, response) File "/uslib/python3.5/urllib/request.py", line 582, in http_response 'http', request, response, code, msg, hdrs) File "/uslib/python3.5/urllib/request.py", line 510, in error return self._call_chain(*args) File "/uslib/python3.5/urllib/request.py", line 444, in _call_chain result = func(*args) File "/uslib/python3.5/urllib/request.py", line 590, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: Forbidden 
Any ideas? I tried running it in Geany inside my LubuntuVM but same result.
submitted by 5footbanana to learnprogramming [link] [comments]

Adding a changing variable to a list

So, my program tracks the price of bitcoins. How would I put these prices into a list so I can compare the most recent two?
import requests import json import threading def get_price(): # The timer, to run every minute threading.Timer(6.0, get_price).start() p = requests.get("http://api.coindesk.com/v1/bpi/currentprice/USD.json") price = '%d' % p.json()['bpi']['USD']['rate_float'] time = '%s' % p.json()['time']['updated'] p.close() print('$' + price + ' ' + time) return price # $9254 at 10:12pm 4/26/18 def print_list(price): price_list = [] price_list.append(price) print(price_list) get_price() print_list(get_price()) 
submitted by tbone912 to learnpython [link] [comments]

An analysis of BTC fundamentals

Disclaimer: This post is not an endorsement to either buy or sell Bitcoins. I am simply attempting to outline the reasons why there is inherent value in Bitcoins, as well as the risks that come with investing in a crypto-currency. In full disclosure, I personally own and use them, but only a very small portion of my overall portfolio which I would be ok if BTC went to 0 tomorrow.
Purpose: I’ve been seeing a lot of doom and gloom (as well as irrational exuberance) in a lot of posts lately, and a lot of people saying this or that with no evidence or fundamentals to back up their claims. So I wanted to put my thoughts and experiences [more about me below] out there in the hopes that people actually serious about utilizing Bitcoins (BTC from here on) might find this information helpful, as well as to connect with and solicit thoughts from anybody else that’s done research on the future of BTC. Also mods: I searched through old posts and the FAQ but couldn’t really find anything like this, so let me know if there is a more appropriate place to post this. I can also add hyperlinked sources to this to make it a reference document if there is interest.
Summary/tl;dr: The fundamentals underlying the intrinsic value of Bitcoins haven’t changed. In fact, they continue to improve day-by-day, as merchant and user adoption increases. As long as this trend continues, and certain risk factors - see below - are minimized, BTC will eventually become widely accepted as a currency.
That being said, you should never “invest” more money than you are willing to completely lose, or money that you would otherwise need for living expenses. Otherwise, you are gambling. (I put “invest” in quotes because I believe BTC are currently far too speculative to be considered an “investment.” This may change in the future, but the technology is still so new, and there are so many unknowns, that it should not be considered anything more than a speculative investment at this point.)
This has happened before and it will happen again: This week hasn’t been good for those holding Bitcoins. In fact, if you invested in BTC anytime in the past year, I’d say it’s been a pretty shitty year, period. But the thing is, we’ve seen this type of thing in financial markets before, almost exactly to a t, and how they tend to play out. There have been various bubbles of all shapes and sizes throughout history, and the run-up in prices earlier this year, was no exception. However, unlike the critics, I believe BTCs are different, as there is significant intrinsic value in the BTC network and BTC as a value store - which I outline below.
I also think it’s useless to speculate about the direction of BTC in the short to medium-term (I would argue the price adjustment has been a good thing for the long-term), so to me the only meaningful way to analyze what’s going on is to examine the fundamentals (apologies if a lot of this is basic, but I wanted to cover all the key points as I saw them):

Value:

So I’ve briefly outlined above some pretty clear reasons why there is inherent value in BTC, and the reasons why I personally am optimistic about the long-term future and will continue to use them. That being said, I’ve also identified several primary risk factors that worry me as a long-term investor, ones that all holders of BTC should be aware of. Please, if you know or can think of any others, reply or PM me so I can add them to this list:

Risks:

I could go on, but those are the major value and risk factors I see. If you have anything to add, please feel free.
So, in the context of everything I said above, I’d like to talk about what happened this week in particular:
I believe this week’s price movement (as of me writing this, has been a 25% drop) is a result of several factors:
  1. News that US Dollar is very strong
  2. Capitulation: I don’t have the ability to do Technical Analysis on BTC right now, but just eyeing the 1-year chart, it looks like $400 was a key support point for the price of BTC. Once it broke through that, psychological barriers were broken and selling cascaded.
  3. Russia and China potentially banning BTC
And that’s it. That’s all I can find about Bitcoins in the news. The value fundamentals I listed have not changed one bit, and if anything, the rate of user adoption has increased as more people are learning what it is.
Which is why I’m excited about the future of BTC. It’s a product that I use and like, and see tremendous value for. This week’s sell-off just means I can buy more.
About me:
In a past life, I was an equity research analyst responsible for due diligence, fundamental/technical analysis, and making recommendations to the PM on which stocks a certain mutual fund should buy or sell. This meant reading through a lot of annual reports, financial statements, 10-K, 10-Q, shareholder calls, etc… My primary influences were Warren Buffett, Philip Fisher, and Ben Graham. If you recognize these names, you’ll probably guess that I was a value investor1 , and you’d be right. The fundamental premise behind value investing, for those that don’t know, is that you can find companies that are trading at a discount to their “true” intrinsic value, and thus can make money by buying the stock at a low price and selling when the market has realized the fair value of the company and the price has subsequently gone up. This is essentially how Warren Buffett built Berkshire Hathaway and became the world’s richest man (for a short period); his strategy has since greatly evolved, but this was the core philosophy he used for a long time.
1 Utilizing this strategy, our fund bought a significant stake in AAPL when the price per share was less than the amount of cash per share the company currently held (split adjusted something like ~$2 per share when we bought). It hasn’t all been a bed of roses, we’ve made some not-so-great investments, but that’s a story for a different time :)
Edit: Paragraphs within bullets? How do you do them?
submitted by owpunchinface to Bitcoin [link] [comments]

Bitcoin going up, then down, then up... Wish it would make up it's mine!

Went to bed last night and my toy miner was making about $1.50 a day. Woke up this morning and it's making $5.00 a day. Figured it was a dream so rolled over and fell out of my chair! I got up and figured I need to sip a bit more of my hot coffee and try harder to wake up. Since I am brand new to this mining thing, I have to either guess what is going on or ask. My guess is, since I am mining using NiceHash, I hit onto a job someone was paying a lot to mine. I noticed about a $300 spike up in Bitcoin price on CoinDesk BPI, so I am thinking someone with bucks to spend either bought alot of Bitcoin to excite miners, or something more involved is going on. What is going on?
I have noticed my USD is fluctuating pretty drastically up and down, but more down then up. At $3.83 right now. I think I liked it at $5.00 better.
-Rodger
submitted by marjamar to Bitcoin [link] [comments]

Bitcoin Price Continues Record-Breaking Run to Top $1,500 Dish Networks accepts Bitcoin -- Dutch Bitcoin Mania -- Pheeva, Gyft and iOS Hoodies for the Homeless Success! -- China Bitcoin Forever ... LED Bitcoin Price Ticker - Raspberry Pi Gas Station in Colorado Accepts Bitcoins! -- Bitcoin Poker -- New York Bitcoin FUD

Bitcoin USD price, real-time (live) charts, bitcoin news and videos. Learn about BTC value, bitcoin cryptocurrency, crypto trading, and more. Der Bitcoin Price Index (BPI) von CoinDesk verzeichnete nach einem Höchststand von 19.783 Dollar einen Abschwung auf 19.178 Dollar. Nicht wenige Beobachter sehen in der volatilen Kursentwicklung ... CoinDesk hat Bitfinex zum Bitcoin Price Index (BPI) heute ab 16:00 Uhr GMT hinzugefügt. Bitfinex, das in Hongkong integriert ist, ist auf CoinDesks Radar für eine mögliche Aufnahme in den BPI seit einiger Zeit. In den vergangenen Wochen und vor allem seit dem Niedergang des Berges. Gox haben wir festgestellt, dass Bitfinex in der Lage war ... CoinDesk. From Wikipedia, the free encyclopedia. CoinDesk; Headquarters: New York, NY, U.S. Industry: Digital Currency: Employees: 15+ Website: coindesk.com : Launched: May 2013; 6 years ago () CoinDesk is a news site specializing in bitcoin and digital currencies. The site was founded by Shakil Khan and was subsequently acquired by Digital Currency Group. YouTube Encyclopedic ... CoinDesk Bitcoin Price Index. CoinDesk launched a proprietary Bitcoin Price Index on September 11, 2013. The Bitcoin Price Index (BPI) represents an average of bitcoin prices across leading global exchanges that meet criteria specified by the BPI. It is intended to serve as a standard retail price reference for industry participants and ...

[index] [11137] [26409] [28743] [29155] [45610] [12726] [26999] [44611] [49940] [23702]

Bitcoin Price Continues Record-Breaking Run to Top $1,500

September 11, 2013 -- Juneau, Alaska -- MadBitcoins, the other white meat. Here are Today's MadBits: The new CoinDesk BPI (Bitcoin Price Index) shows bitcoin prices to be steady in the $120 range ... This video is unavailable. Watch Queue Queue. Watch Queue Queue Queue September 12, 2013 - Osaka, Japan -- Give me a break, give me a break; break me off a piece of that MadBitcoins. Here are Today's MadBits: CoinDesk BPI's new blended bitcoin chart shows bitcoin ... This video is unavailable. Watch Queue Queue. Watch Queue Queue Keeping an eye on the price of bitcoin as it returns to the moon! :) This bitcoin ticker is displaying the CoinDesk BPI in GBP (updates every minute). Built using a Raspberry Pi - B+ with BelleVue ...

#