# Last edited on 2014-06-30 16:25:12 by stolfilocal OPTIMUM TRADER # See otimum/00-Notebook.txt # Shipping: rsync -avzu optimum/ stolfi@manaus.ic.unicamp.br:public_html/temp/2014-04-07-btc-opt/ & EXTRACTING HUOBI'S DAILY VOLUMES # Extracting the daily volumes at Huobi (kBTC) from my daily reports: posts/collect-volumes-HUBI.gawk \ posts/20??-??-??-daily-volumes.txt \ | sort | uniq \ > posts/daily-volumes-HUBI.txt PLOTTING THE WORLDCOM DATA # I could not find a machine-readable file of Worldcom stock price data. # So I downloaded a graph of daily data from (approx) 1994-01-03 to 2002-06-25. # I turned it 90 degrees CW and massaged with gimp to # leave only the white-on-black plot as an ascii PGM file. # Extracted the data from it: extract_plot_data_from_ascii_pgm.gawk \ < imgedit/worldcomm-closing-price-line.pgm \ > imgedit/worldcomm-closing-price-data.txt # The plot line on the image spans pixel rows 24 to 338, corresponding to about 3096 days; # and 202 columns from column 19, corresponding to 0 to 70 US$/share. # The scaling factors are therefore 3096.0/315/365.25 = 0.02691 for time in years (X), and # 70.0/202 = 0.3465 for share price in dollars (Y). plot_interval_data.sh \ SHOW mid \ 24.0 0.02691 1994.005 \ 19.0 0.3465 0.0 \ 0.80 500.0 \ "WorldCom share price 1994-01-03 to 2002-06-25" \ < imgedit/worldcomm-closing-price-data.txt \ > imgedit/worldcomm-closing-price-log.png DAILY VOLUMES # I have been posting messages with daily volumes for all exchanges listed in bitcoinwidom.com # The message files are "posts/{DATE}-daily-volumes.txt", e.g. "posts/2014-02-04-daily-volumes.txt" # I also collected the totals for China and outside China in the file # "posts/all-daily_volumes.txt" Plotting them: plot_collected_volumes.sh \ 'Daily trade volumes (kBTC) - 2014-01-15 to 2014-02-04' \ posts/2014-01-15--2014-02-04-daily-volumes.txt \ plots/2014-01-15--2014-02-04-daily-volumes