mt_gox 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +46 -0
- data/.rspec +2 -0
- data/.rvmrc +1 -0
- data/.travis.yml +3 -0
- data/.yardopts +4 -0
- data/Gemfile +3 -0
- data/LICENSE.md +20 -0
- data/README.md +63 -0
- data/Rakefile +38 -0
- data/VERSION +1 -0
- data/lib/faraday/response/raise_mtgox_error.rb +11 -0
- data/lib/mtgox/ask.rb +16 -0
- data/lib/mtgox/balance.rb +10 -0
- data/lib/mtgox/bid.rb +16 -0
- data/lib/mtgox/buy.rb +6 -0
- data/lib/mtgox/client.rb +263 -0
- data/lib/mtgox/configuration.rb +41 -0
- data/lib/mtgox/connection.rb +32 -0
- data/lib/mtgox/error.rb +7 -0
- data/lib/mtgox/max_bid.rb +10 -0
- data/lib/mtgox/min_ask.rb +10 -0
- data/lib/mtgox/offer.rb +5 -0
- data/lib/mtgox/order.rb +14 -0
- data/lib/mtgox/price_ticker.rb +27 -0
- data/lib/mtgox/request.rb +46 -0
- data/lib/mtgox/sell.rb +6 -0
- data/lib/mtgox/ticker.rb +10 -0
- data/lib/mtgox/trade.rb +13 -0
- data/lib/mtgox/version.rb +6 -0
- data/lib/mtgox.rb +25 -0
- data/spec/faraday/response_spec.rb +14 -0
- data/spec/fixtures/address.json +1 -0
- data/spec/fixtures/balance.json +1 -0
- data/spec/fixtures/buy.json +1 -0
- data/spec/fixtures/cancel.json +1 -0
- data/spec/fixtures/depth.json +1 -0
- data/spec/fixtures/error.json +1 -0
- data/spec/fixtures/mysql_error +1 -0
- data/spec/fixtures/orders.json +1 -0
- data/spec/fixtures/sell.json +1 -0
- data/spec/fixtures/ticker.json +1 -0
- data/spec/fixtures/trades.json +1 -0
- data/spec/fixtures/withdraw.json +1 -0
- data/spec/helper.rb +62 -0
- data/spec/mtgox/client_spec.rb +315 -0
- data/spec/mtgox_spec.rb +22 -0
- metadata +226 -0
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'base64'
|
2
|
+
|
3
|
+
module MtGox
|
4
|
+
module Request
|
5
|
+
def get(path, options={})
|
6
|
+
request(:get, path, options)
|
7
|
+
end
|
8
|
+
|
9
|
+
def post(path, options={})
|
10
|
+
request(:post, path, options)
|
11
|
+
end
|
12
|
+
|
13
|
+
private
|
14
|
+
|
15
|
+
def request(method, path, options)
|
16
|
+
response = connection.send(method) do |request|
|
17
|
+
case method
|
18
|
+
when :get
|
19
|
+
request.url(path, options)
|
20
|
+
when :post
|
21
|
+
request.path = path
|
22
|
+
request.body = body_from_options(options)
|
23
|
+
request.headers = headers(request.body)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
response.body
|
27
|
+
end
|
28
|
+
|
29
|
+
def headers(request)
|
30
|
+
signature = Base64.strict_encode64(
|
31
|
+
OpenSSL::HMAC.digest 'sha512',
|
32
|
+
Base64.decode64(MtGox.secret),
|
33
|
+
request
|
34
|
+
)
|
35
|
+
{'Rest-Key' => MtGox.key, 'Rest-Sign' => signature}
|
36
|
+
end
|
37
|
+
|
38
|
+
def body_from_options(options)
|
39
|
+
add_nonce(options).collect{|k, v| "#{k}=#{v}"} * '&'
|
40
|
+
end
|
41
|
+
|
42
|
+
def add_nonce(options)
|
43
|
+
options.merge!({:nonce => (Time.now.to_f * 1000000).to_i})
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
data/lib/mtgox/sell.rb
ADDED
data/lib/mtgox/ticker.rb
ADDED
data/lib/mtgox/trade.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'mtgox/order'
|
2
|
+
|
3
|
+
module MtGox
|
4
|
+
class Trade < Order
|
5
|
+
|
6
|
+
def initialize(trade={})
|
7
|
+
self.id = trade['tid'].to_i
|
8
|
+
self.date = Time.at(trade['date'].to_i)
|
9
|
+
self.amount = trade['amount'].to_f
|
10
|
+
self.price = trade['price'].to_f
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/mtgox.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'mtgox/client'
|
2
|
+
require 'mtgox/configuration'
|
3
|
+
require 'mtgox/error'
|
4
|
+
|
5
|
+
module MtGox
|
6
|
+
extend Configuration
|
7
|
+
class << self
|
8
|
+
# Alias for MtGox::Client.new
|
9
|
+
#
|
10
|
+
# @return [MtGox::Client]
|
11
|
+
def new
|
12
|
+
MtGox::Client.new
|
13
|
+
end
|
14
|
+
|
15
|
+
# Delegate to MtGox::Client
|
16
|
+
def method_missing(method, *args, &block)
|
17
|
+
return super unless new.respond_to?(method)
|
18
|
+
new.send(method, *args, &block)
|
19
|
+
end
|
20
|
+
|
21
|
+
def respond_to?(method, include_private=false)
|
22
|
+
new.respond_to?(method, include_private) || super(method, include_private)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
describe Faraday::Response do
|
4
|
+
before do
|
5
|
+
stub_get('/api/0/data/getTrades.php').
|
6
|
+
to_return(:status => 200, :body => fixture('mysql_error'))
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should raise MtGox::MysqlError" do
|
10
|
+
lambda do
|
11
|
+
MtGox.trades
|
12
|
+
end.should raise_error(MtGox::MysqlError)
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
{"addr": "171dH9Uum6wWLSwH2g8g2yto6SG7NEGyXG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"usds":3.7,"btcs":22}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"status":"Your order has been queued for execution","orders":[{"oid":"9f9983fd-5358-4e68-909e-42e69c7ded3f","currency":"USD","item":"BTC","type":2,"amount":1,"price":2,"status":2,"dark":0,"date":1309199181,"priority":"1309199181788900"},{"oid":"3b0f10d7-251d-4a1b-ad6d-4f03877b85d1","currency":"USD","item":"BTC","type":2,"amount":0.1,"price":6,"status":1,"dark":0,"date":1309198830,"priority":"1309198830086400"},{"oid":"490a214f-9a30-449f-acb8-780f9046502f","currency":"USD","item":"BTC","type":2,"amount":0.2,"price":7,"status":1,"dark":0,"date":1309198838,"priority":"1309198838630500"},{"oid":"a20329fe-c0d5-4378-b204-79a7800d41e7","currency":"USD","item":"BTC","type":1,"amount":0.2,"price":99,"status":1,"dark":0,"date":1309198820,"priority":"1309198820706100"},{"oid":"7eac0bb4-b07c-42c2-936a-bb0a33ab2f64","currency":"USD","item":"BTC","type":1,"amount":0.659,"price":100,"status":1,"dark":0,"date":1309198722,"priority":"1309198722477200"},{"oid":"c35abb5b-42fc-43be-ad4e-60bfed184440","currency":"USD","item":"BTC","type":1,"amount":0.2,"price":100,"status":0,"dark":0,"date":1309198722,"priority":"1309198722477200"},{"oid":"e24b7470-ea06-4c78-b5d0-0ab12826b626","currency":"USD","item":"BTC","type":1,"amount":0.1,"price":101,"status":0,"dark":0,"date":1309198807,"priority":"1309198807803300"}]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"usds":199.9959,"btcs":0.859,"orders":[{"oid":"3b0f10d7-251d-4a1b-ad6d-4f03877b85d1","currency":"USD","item":"BTC","type":2,"amount":0.1,"price":6,"status":1,"dark":0,"date":1309198830,"priority":"1309198830086400"},{"oid":"490a214f-9a30-449f-acb8-780f9046502f","currency":"USD","item":"BTC","type":2,"amount":0.2,"price":7,"status":1,"dark":0,"date":1309198838,"priority":"1309198838630500"},{"oid":"a20329fe-c0d5-4378-b204-79a7800d41e7","currency":"USD","item":"BTC","type":1,"amount":0.2,"price":99,"status":1,"dark":0,"date":1309198820,"priority":"1309198820706100"},{"oid":"7eac0bb4-b07c-42c2-936a-bb0a33ab2f64","currency":"USD","item":"BTC","type":1,"amount":0.659,"price":100,"status":1,"dark":0,"date":1309198722,"priority":"1309198722477200"},{"oid":"c35abb5b-42fc-43be-ad4e-60bfed184440","currency":"USD","item":"BTC","type":1,"amount":0.2,"price":100,"status":0,"dark":0,"date":1309198722,"priority":"1309198722477200"},{"oid":"e24b7470-ea06-4c78-b5d0-0ab12826b626","currency":"USD","item":"BTC","type":1,"amount":0.1,"price":101,"status":0,"dark":0,"date":1309198807,"priority":"1309198807803300"}]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"asks":[[17.00009,36.22894353],[17.09999,16.82],[17.1,20.83934156],[17.12,3.17],[17.1336,0.3],[17.1337,0.8],[17.15,14.5],[17.167,50],[17.1697,9.61545397],[17.17999,5],[17.18,10],[17.189,1],[17.197,5.5821033],[17.2,57.8985],[17.20009,33.77],[17.2163,0.4],[17.22,0.25],[17.23,3],[17.24,21.3],[17.249,51],[17.25,130.705],[17.27,6.979],[17.28,2],[17.2905,5],[17.2906,0.7],[17.29795,5],[17.29999,1.00711],[17.3,19.925],[17.301,19.98045978],[17.32,4.777624],[17.3225,5],[17.329,5],[17.3299,12.58],[17.33,25.4],[17.3301,300],[17.3375,0.5771173],[17.35,0.5],[17.3784,0.8],[17.39,1],[17.3999,67.205],[17.4,44.93390654],[17.42,8.4815],[17.4224,2.77],[17.4321,0.5],[17.44069,115.7631579],[17.45,1.5],[17.46028,10],[17.46029,41.666],[17.4661,0.57253766],[17.47,3.31],[17.47006,2],[17.48,4],[17.49,108.299],[17.492,9.68241251],[17.499,50],[17.4997,1],[17.49999,1],[17.5,255.90168676],[17.50199,1.03],[17.55,3.5],[17.566,1.1],[17.5839,5],[17.59,105.6829],[17.6,15.0141094],[17.60999,2.981],[17.62,4],[17.65,255.5],[17.665,64],[17.68,8],[17.689,5.54],[17.69,10.95948174],[17.6911,1.2],[17.697,0.3],[17.699,3.47],[17.6999,14.62692046],[17.7,57.18002418],[17.71,27.7],[17.72,2.1],[17.73,7],[17.735,20],[17.738,1.81754],[17.7389,39],[17.739,1.3],[17.7398,3.38],[17.7399,52.52],[17.74,400],[17.744,10],[17.75,15.27],[17.75279,10],[17.78,22.36],[17.7821,50],[17.785,4.259],[17.79,14.38],[17.79999,0.368],[17.8,190.64974],[17.80199,1.95],[17.8473,2.68],[17.84999,1.5],[17.85,3.1],[17.87304,6.32188],[17.88,32],[17.888,3.592],[17.89,13],[17.891,10],[17.898,7.9],[17.899,30],[17.8999,1.001],[17.9,452.12386426],[17.915,6.04],[17.92,205],[17.9201,1],[17.928,4],[17.92999,20],[17.93,27],[17.9313,1],[17.94,23],[17.946,40],[17.9499,1.84],[17.94999,2.37],[17.95,125.16659215],[17.95152,3],[17.95998,1],[17.97,30.99],[17.97019,1],[17.975,1],[17.98,122.16194395],[17.9849,0.899245],[17.986,21.485],[17.98661,9.935],[17.9898,8.1],[17.98989,0.5],[17.9899,21.72],[17.98999,6],[17.99,109.56249999],[17.9901,100],[17.999,87.85],[17.9995,1],[17.9997,9.57945251],[17.9999,61.994],[18,1074.26499999],[18.01,2.091],[18.0416,1.5],[18.05,12.0335],[18.1,30.7],[18.1091,23.741573],[18.14,1],[18.15,8.1],[18.19,1],[18.196,0.33],[18.2,23.9361],[18.238,1],[18.249,1],[18.25,4.6],[18.2722,2.58],[18.3,6.84],[18.305,2.95],[18.31,1],[18.3119,20],[18.35,0.1],[18.38,2.1],[18.4,8.1],[18.41,120],[18.42,11],[18.45,10.34],[18.459,2.5],[18.46,2],[18.47,7.71],[18.48,25],[18.489,2],[18.49,25.269],[18.499,1],[18.4999,8.949],[18.49999,1],[18.5,164.71541],[18.52,500],[18.55,0.1],[18.573,15],[18.5854,5],[18.6,30],[18.65,0.1],[18.6501,11.56535],[18.689,2],[18.7,23.536],[18.7141,16],[18.7427,2.4],[18.75,14.61948],[18.76,0.32],[18.78,5],[18.80099,10],[18.85,0.1],[18.86,1.03168239],[18.8799,2.354],[18.889,2],[18.89,11],[18.898,8.534],[18.89956,19.87],[18.9,27.55],[18.91,45.13],[18.92,1],[18.92999,20],[18.95,0.1],[18.95152,3],[18.97,2],[18.974,1.5],[18.9799,20.005],[18.98,2],[18.981,12],[18.982,11],[18.983,11],[18.984,11],[18.985,11],[18.99,41.79],[18.999,1],[18.9998,1],[18.9999,5],[18.99999,0.5],[19,1065.99613],[19.009,2],[19.01,1],[19.05,0.1],[19.1,69.97],[19.11,129],[19.15,0.1],[19.18999,1.08014473],[19.2,8.95],[19.20987,30],[19.25,43.943609],[19.29899,19.87],[19.3,8.716],[19.35,2.1],[19.37,0.31],[19.39,10],[19.4,10.797],[19.409,2],[19.40999,2.2],[19.42,2],[19.43,4],[19.441,7.941],[19.445,1],[19.45,18.177],[19.46,5],[19.47,2.93],[19.49,9.44],[19.499,1],[19.5,207.95925],[19.51,11.6],[19.52,130],[19.53,10],[19.55,0.1],[19.59,50],[19.6,153.79104489],[19.65,0.1],[19.7,2.98],[19.7125,1],[19.749,6.426],[19.74999,1018],[19.75,227.83],[19.75279,10],[19.8,20.8],[19.8499,10],[19.85,0.1],[19.86,1],[19.87,7.949],[19.874,3.5],[19.88,46.976],[19.89,11],[19.891,50],[19.89783,19.87],[19.8999,1],[19.9,15.1],[19.92,25],[19.939,10.092],[19.94,174.875],[19.945,1],[19.9487,60],[19.95,326.85],[19.95152,3],[19.97,4],[19.98,54],[19.9813,1],[19.9876,3],[19.989,13.97],[19.9899,2],[19.99,604],[19.995,2.5],[19.998,25],[19.999,67.515],[20,1154.25524059],[20.00001,1],[20.01,0.3],[20.09,1],[20.12,2],[20.1449,4],[20.2,1],[20.23,10],[20.445,1],[20.44999,7],[20.45,181.5],[20.5,74.05],[20.69,1],[20.706,0.29],[20.76,200],[20.77,2.42],[20.889,2],[20.92,5],[20.945,1],[20.97,2],[20.99,0.1],[20.999,10.513],[21,171.104],[21.05,4.66],[21.0991,9.75],[21.10049,2],[21.115,1.4],[21.12,1],[21.19,20],[21.25,38],[21.27,5],[21.28,3.6],[21.29,230],[21.3,3],[21.325,30],[21.34,2],[21.39,20.696],[21.445,1],[21.4464,0.28],[21.45,29],[21.5,1],[21.59,3.97],[21.7,1],[21.74,15],[21.78,3],[21.8,51],[21.81,5],[21.92,5],[21.94,10],[21.945,1],[21.95152,3],[21.99,3.918],[21.999,402],[21.9995,45],[21.9999,5],[22,811.673],[22.1,5],[22.12359,1],[22.2,15],[22.22,23.29092],[22.2407,0.27],[22.28999,1.15669522],[22.44,15],[22.445,1],[22.45,32],[22.49,22],[22.5,31.75],[22.59999,1000],[22.66,10],[22.8,10],[22.851,3],[22.8799,2.01],[22.88,10],[22.9,20],[22.91,3],[22.92,5],[22.92543,100],[22.945,1],[22.9493,7.2],[22.95,5],[22.98,112.713],[22.99,131.439],[22.998,12.347],[23,232.64],[23.02,5],[23.08,3],[23.09,0.5],[23.0961,0.26],[23.098,10],[23.15999,11],[23.19,1],[23.19001,20],[23.42,2],[23.439,2],[23.445,1],[23.48,1],[23.5,5],[23.55,1.14],[23.7,0.33],[23.711,7],[23.75,50]],"bids":[[14.62101,5],[14.64,30],[14.66,2],[14.689,7],[14.68999,5],[14.6988,0.1],[14.7,47.43],[14.72,15],[14.72101,5],[14.73,7],[14.75,20.8],[14.76,33.75],[14.77,22],[14.78,0.5],[14.8,139.8059],[14.805,50],[14.82,0.89419703],[14.85,8],[14.87,20.5],[14.876,50],[14.8898,5],[14.9,3],[14.95,33],[14.95152,3],[14.97,0.5],[14.981,53],[14.99,28],[15,1953.17548867],[15.00001,50],[15.0001,40],[15.002,50],[15.01,148.537],[15.0101,72.5],[15.011,10],[15.0111,6.98],[15.012,1],[15.015,20],[15.02,425.01],[15.021,2],[15.023,60],[15.03,95],[15.0301,1000],[15.04,37],[15.05,201.25],[15.06,10],[15.07005,66.6],[15.0802,11.96899643],[15.09,101],[15.09999,5],[15.1,186.33],[15.10001,6.97040664],[15.11,31.5],[15.111,2],[15.1111,35.6],[15.12,6.2],[15.123,10.87],[15.13,33],[15.13131,51],[15.1319,6],[15.14,16],[15.14127,0.991],[15.15,23],[15.16,1],[15.16001,100.00700527],[15.17,90.5],[15.19,25],[15.2,101.0476],[15.21,32],[15.22,42],[15.25,29.34104656],[15.254,3],[15.26,920],[15.28,20],[15.3,10.19],[15.31,0.02133899],[15.3123,100],[15.32,18],[15.33,24],[15.35,0.1553],[15.351,1],[15.38,0.05838492],[15.3844,2],[15.4,12.03],[15.41235,1.085],[15.45,41.117],[15.4555,5.5],[15.47,7],[15.48,10],[15.491,2],[15.5,6434.0603389],[15.50001,2.462],[15.5001,21.4677],[15.5002,0.5],[15.501,5],[15.502,52],[15.51,381.786],[15.51006,1],[15.5101,1000],[15.5102,70],[15.511,28],[15.515,180],[15.52,46.173],[15.521,100.06158302],[15.522,90],[15.527,20],[15.53,30.4],[15.531,169.93],[15.54,151],[15.54001,145.637],[15.55,11.67],[15.5501,10],[15.56,515.853],[15.57,501],[15.58,500],[15.59,500],[15.6,567],[15.60001,1],[15.6001,8.28290972],[15.606,13],[15.609,10],[15.61,530],[15.62,500],[15.6221,32],[15.63,500],[15.64,40.17],[15.65,25],[15.66,10],[15.67,20.5],[15.685,80],[15.7,465.63],[15.701,11.79954926],[15.7226,3.15],[15.73,100],[15.77,9],[15.8,38.4950019],[15.83,5],[15.86,1],[15.87,2.5],[15.89,10],[15.9,3],[15.902,0.47610175],[15.91,0.7],[15.97,2],[15.98,20],[15.98009,30],[16,510.98478938],[16.00001,1.25],[16.0001,10.257],[16.00011,10],[16.001,1.25],[16.002,50],[16.01,283.65797814],[16.01006,1],[16.011,4],[16.01233,5],[16.014,1],[16.019,4],[16.02,60.02],[16.025,19.845],[16.05,75],[16.0502,5],[16.06,20],[16.0708,1],[16.1,839.4240851],[16.10001,920],[16.1001,200],[16.10011,10],[16.10102,0.4],[16.11,44.2],[16.1101,8.84966194],[16.1108,0.75],[16.111,33.5],[16.112,3.007],[16.115,10],[16.1183,5.3],[16.12,31.64],[16.127,10],[16.13,8.157],[16.1476,3.03],[16.15,44.076],[16.1501,5],[16.151,30],[16.17,14],[16.18,0.44],[16.199,20],[16.2,137.845],[16.2001,1],[16.2098,20],[16.21,6.81648057],[16.211,1.5],[16.22,6.04567],[16.2263,1],[16.25,48.1238],[16.2501,5],[16.26,32],[16.2601,20],[16.2751,0.94687037],[16.28,75],[16.29,10],[16.3,92.45],[16.319,5],[16.32,11.3],[16.33501,0.56636023],[16.35,15],[16.3566,0.6114],[16.36001,30.5],[16.375,6.1068],[16.4,36.13],[16.4002,8],[16.4037,2],[16.4105,0.35],[16.412,4],[16.42,42.097],[16.4202,15],[16.43,0.0024084],[16.4309,0.30430469],[16.4601,20],[16.4899,10],[16.5,290.417],[16.5001,54.95],[16.501,130.96],[16.51,7],[16.5111,30],[16.512,0.11977229],[16.52,25],[16.521,70],[16.5211,0.3],[16.5229,0.58],[16.525,50],[16.5299,0.75620541],[16.53,18.27],[16.54,33],[16.543,1],[16.545,15],[16.55,50.6],[16.555,20],[16.559,44],[16.56,16.6],[16.57,2],[16.5725,2.92],[16.5798,0.17085671],[16.59,45.1],[16.5999,0.2],[16.6,149.69627462],[16.6001,0.1],[16.60101,45.28],[16.61,20.1],[16.62,0.1],[16.6265,0.25],[16.6302,22.18387],[16.6405,0.2],[16.6407,0.25],[16.6409,0.5],[16.6412,0.75],[16.6439,0.9],[16.65,0.1],[16.651,6],[16.6601,20],[16.68,9.1],[16.689,11.795],[16.6904,0.1],[16.7,10.85950419],[16.7013,2.1],[16.717,10],[16.72,2],[16.738,146.5],[16.74,20],[16.75,11.2],[16.764,0.5],[16.77,0.18],[16.7863,0.59572389],[16.7887,4],[16.79,4.08],[16.799,0.1],[16.8,121.85623849],[16.8004,0.2],[16.8005,0.21],[16.801,0.1],[16.802,5.9391061],[16.81,12.03],[16.81111,5],[16.83,5.6],[16.8316,4.12010924],[16.8502,0.12],[16.9,1.1],[16.92001,0.7],[16.927,3],[16.95,5],[16.99999,0.00499765],[17,82.53875035]]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"error":"Not logged in."}
|
@@ -0,0 +1 @@
|
|
1
|
+
MySQL error, please retry later
|
@@ -0,0 +1 @@
|
|
1
|
+
{"usds":199.9959,"btcs":0.859,"orders":[{"oid":"bddd042c-e837-4a88-a92e-3b7c05e483df","currency":"USD","item":"BTC","type":2,"amount":3,"price":5,"status":1,"dark":0,"date":1309198768,"priority":"1309198768104500"},{"oid":"3b0f10d7-251d-4a1b-ad6d-4f03877b85d1","currency":"USD","item":"BTC","type":2,"amount":0.1,"price":6,"status":1,"dark":0,"date":1309198830,"priority":"1309198830086400"},{"oid":"490a214f-9a30-449f-acb8-780f9046502f","currency":"USD","item":"BTC","type":2,"amount":0.2,"price":7,"status":1,"dark":0,"date":1309198838,"priority":"1309198838630500"},{"oid":"a20329fe-c0d5-4378-b204-79a7800d41e7","currency":"USD","item":"BTC","type":1,"amount":0.2,"price":99,"status":1,"dark":0,"date":1309198820,"priority":"1309198820706100"},{"oid":"7eac0bb4-b07c-42c2-936a-bb0a33ab2f64","currency":"USD","item":"BTC","type":1,"amount":0.659,"price":100,"status":1,"dark":0,"date":1309198722,"priority":"1309198722477200"},{"oid":"c35abb5b-42fc-43be-ad4e-60bfed184440","currency":"USD","item":"BTC","type":1,"amount":0.2,"price":100,"status":0,"dark":0,"date":1309198722,"priority":"1309198722477200"},{"oid":"e24b7470-ea06-4c78-b5d0-0ab12826b626","currency":"USD","item":"BTC","type":1,"amount":0.1,"price":101,"status":0,"dark":0,"date":1309198807,"priority":"1309198807803300"}]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"status":"Your order has been queued for execution","orders":[{"oid":"9f9983fd-5358-4e68-909e-42e69c7ded3f","currency":"USD","item":"BTC","type":2,"amount":1,"price":2,"status":1,"dark":0,"date":1309199181,"priority":"1309199181788900"},{"oid":"3b0f10d7-251d-4a1b-ad6d-4f03877b85d1","currency":"USD","item":"BTC","type":2,"amount":0.1,"price":6,"status":1,"dark":0,"date":1309198830,"priority":"1309198830086400"},{"oid":"490a214f-9a30-449f-acb8-780f9046502f","currency":"USD","item":"BTC","type":2,"amount":0.2,"price":7,"status":1,"dark":0,"date":1309198838,"priority":"1309198838630500"},{"oid":"a20329fe-c0d5-4378-b204-79a7800d41e7","currency":"USD","item":"BTC","type":1,"amount":0.2,"price":99,"status":1,"dark":0,"date":1309198820,"priority":"1309198820706100"},{"oid":"7eac0bb4-b07c-42c2-936a-bb0a33ab2f64","currency":"USD","item":"BTC","type":1,"amount":0.659,"price":100,"status":1,"dark":0,"date":1309198722,"priority":"1309198722477200"},{"oid":"c35abb5b-42fc-43be-ad4e-60bfed184440","currency":"USD","item":"BTC","type":1,"amount":0.2,"price":100,"status":0,"dark":0,"date":1309198722,"priority":"1309198722477200"},{"oid":"e24b7470-ea06-4c78-b5d0-0ab12826b626","currency":"USD","item":"BTC","type":1,"amount":0.1,"price":101,"status":0,"dark":0,"date":1309198807,"priority":"1309198807803300"},{"oid":"fdf0b134-7336-49c1-9d94-6ec641cffc74","currency":"USD","item":"BTC","type":1,"amount":1.7,"price":200,"status":2,"dark":0,"date":1309199274,"priority":"1309199274263700"}]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"ticker":{"high":28.678,"low":18.4,"vol":80531,"buy":26.4,"sell":26.6099,"last":26.5,"vwap":3.81561}}
|