Skip to content

Instantly share code, notes, and snippets.

U2FsdGVkX1+KsIcJUiWWD/fDIV7AY+jqTSDWbp1hBBLFztRxd8mN8T/igGJuUPot
O6dAR/GKJ68fYlWaZ5PBawS4O+pmIlZSgdpgJx63ZjXBvuAAPHGe8JOVuztvbElQ
8Wqj9QXORH9fy2e1YWoFcKoADr6trw7BbefCeybj8HYW5Q0Uqs4L1tLggzd/yJfM
2NJ9oTJvJuIdeya4YmhyzUdqe9rbZuClFGnp95+IXP764od8fbRnq6dkGKgDV4zU
3lslUuiPi+MkARVaRDmScOopkKkC8Nul8C294yw7B11O5oHX9YJxuRBvtB293Ra5
eXEgKYwF9QgJh0TMAwpsssf4jMhzkFHwOiVKGdVbusmSU7bGdbbHs62GpW5rSShT
HPn7e9kCvgTkpOy0FTLzq0Fct8mVT4BZ8KzQTAJxoku+bhc04Ck7qwpG5Cb178eD
ezOmkX6BzYRBuzZLxMWW7veR9qkEVY/j4y1ab29mIREogVda8BhWbrPsBxuZLEKZ
Y7+xIRa9xY/gfGQdxetKBJ1NMdAKxsR80oH82/J/D6CkG9sBJ0rAeVm9n7CefUlN
kDWKogr4Yh55y6owYXyhvnxIst5pqJJ1mRX6YeghDuI6kOmml4zZHjr74Dv3k3Ri
{elem
<script type="text/javascript">
"\n//"
{cdata
"<![CDATA[\n"
"var graph_width = 320;\n"
"var graph_height = 200;\n"
"var bar_gap = 1;\n"
"\n"
"var graphs_uri = 2B\"/graphs.xml\";\n"
@mtthwkfmn
mtthwkfmn / marketapi1
Created September 17, 2009 14:16
marketapi templates from matt's desktop
<html>
<head>
<title>Market API</title>
<style type="text/css">
body, div, img, form, fieldset, ul, ol, li, h1, h2, h3, h4 {
margin: 0;
padding: 0;
border: none; }
<?xml version="1.0" encoding="UTF-8"?><MarketAPI><Request><Symbol><![CDATA[C]]></Symbol><YahooFormat><![CDATA[sl1vd1t1pc1p2]]></YahooFormat></Request><Response><MarketAPI><Split><![CDATA[Array
(
[0] => "C"
[1] => 4.26
[2] => 455335296
[3] => "9/16/2009"
[4] => "11:20am"
[5] => 4.12
[6] => +0.14
[7] => "+3.40%"
GET /book/SOLF/data:
----
{
"status": "200: ",
"success": true,
"statusText": "",
"reload": 3600000,
"data": {
"timestamp": "20:25:44",
<MarketAPI>
<Tickers query="*" timestamp="2009-09-16 03:09:44" count="8045">
<Ticker name="A" description="" />
<Ticker name="AA" description="" />
<Ticker name="AA-" description="" />
<Ticker name="AAAA~" description="" />
<Ticker name="AAC" description="" />
<Ticker name="AACC" description="" />
<Ticker name="AAI" description="" />
<Ticker name="AAME" description="" />
@mtthwkfmn
mtthwkfmn / gist:187917
Created September 16, 2009 07:23
bats trading ext Book function in Bats Ext.ns namespace ... I guess. :)
Ext.ns('Bats');
Bats.Book = function (config) {
config = config || {};
config.symbol = config.symbol || "";
config.ttl = typeof(config.ttl) != 'undefined' ? config.ttl : 3500;
config.count = config.count || '';
Ext.apply(this, config);
};
Bats.Book.prototype = {
failureCnt: 0,
{
"status": "200: ",
"success": true,
"statusText": "",
"reload": 3600000,
"data": {
"trades_count": 10,
"asks_count": 0,
"asks": [],
"timestamp": "17:29:37",
Ext.ns('Bats');
Bats.Book = function (config) {
config = config || {};
config.symbol = config.symbol || "";
config.ttl = typeof(config.ttl) != 'undefined' ? config.ttl : 3500;
config.count = config.count || '';
Ext.apply(this, config);
};
Bats.Book.prototype = {
failureCnt: 0,
@mtthwkfmn
mtthwkfmn / gist:187831
Created September 16, 2009 02:44 — forked from jcrosby/gist:92294
var store = $.cloudkit;
store.boot({
// booting the store reads the metadata on the server,
// loads existing data, and configures the local store
// for use
success: function() {