virtex 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +49 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +114 -0
- data/lib/virtex/client.rb +145 -0
- data/lib/virtex/exception.rb +7 -0
- data/lib/virtex/version.rb +3 -0
- data/lib/virtex.rb +3 -0
- data/spec/fixtures/vcr_cassettes/virtex_authenticated_cassette.yml +309 -0
- data/spec/fixtures/vcr_cassettes/virtex_authenticated_error_cassette.yml +45 -0
- data/spec/fixtures/vcr_cassettes/virtex_unauthenticated_cassette.yml +1522 -0
- data/spec/spec_helper.rb +10 -0
- data/spec/virtex_spec.rb +163 -0
- data/virtex.gemspec +24 -0
- metadata +147 -0
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://cavirtex.com/api2/user/order.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: mode=sell&amount=1.0&price=1000.0¤cypair=BTCCAD&token=bzv6qarmw4nocmz4wdtmm5tukn9nvng1&nonce=1407049060166375&signature=25b1448751b7224f2ea5cdb9f27b336b78b6bf6b1ab5524e1808a9d80d37f912
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Server:
|
16
|
+
- cloudflare-nginx
|
17
|
+
Date:
|
18
|
+
- Sun, 03 Aug 2014 06:57:44 GMT
|
19
|
+
Content-Type:
|
20
|
+
- text/html; charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Set-Cookie:
|
26
|
+
- __cfduid=d8adba6b24148fb720ab187fd61f1d8021407049064253; expires=Mon, 23-Dec-2019
|
27
|
+
23:50:00 GMT; path=/; domain=.cavirtex.com; HttpOnly
|
28
|
+
- sessionid=4ef9632b241b7f1764c142b463723dee; expires=Sun, 03-Aug-2014 10:57:41
|
29
|
+
GMT; httponly; Max-Age=14400; Path=/; secure
|
30
|
+
Last-Modified:
|
31
|
+
- Sun, 03 Aug 2014 06:57:41 GMT
|
32
|
+
Expires:
|
33
|
+
- Sun, 03 Aug 2014 06:57:41 GMT
|
34
|
+
Vary:
|
35
|
+
- Cookie,Accept-Encoding
|
36
|
+
Cache-Control:
|
37
|
+
- max-age=0
|
38
|
+
Cf-Ray:
|
39
|
+
- 15409f6b9a620528-YYZ
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: '{"status": "error", "apirate": 2, "message": "Not sufficient funds"}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Sun, 03 Aug 2014 06:57:45 GMT
|
45
|
+
recorded_with: VCR 2.9.2
|