cryptsy-api 0.0.6 → 0.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 997098a8b98341cbe18c4a165ef29b1d1e317477
4
- data.tar.gz: f385755b045c05e01bd5e2403a49f9efe7b22cfe
3
+ metadata.gz: 7d810fdec833d221dc121345c8aabad337e5e69d
4
+ data.tar.gz: 1952371f21cc4bf9d0656463770e298a4a08ff0f
5
5
  SHA512:
6
- metadata.gz: 31ae6eda57a0d36b3f0f52bc4b4ae823c9f5daf4c729a888c3f6e7eadbc486cc8cf1d0eaac4a5ebc02499f2e41dc762f76b70a096dbfa7f530a1fb5c10ed3d04
7
- data.tar.gz: e9e84d740dbdc1f13c0a831a35e62b40836c04efcd3f34b3408da42bc0f4c977ac95985959baabae2b9027c0b8854cfe300ddf07f7042115ae78624415ed09db
6
+ metadata.gz: b9b9827d9d9344c772debe173d05cadd142b2b481d0a5dabda3fea6d8ac86cc7ca2d5e5ef00918ee862a27ea1b4093bb6a7a076447a46d1bc87c1a76b2978b2d
7
+ data.tar.gz: be9f5da65eee8f781a7a89af8e9cfb0b8246223d1e51897d33cd8d45ed033cbd0d2a9b2ac0324f3a714c4a0dca0ef8382486077c679ccd2aec34e7f4b1707701
@@ -1,5 +1,5 @@
1
1
  module Cryptsy
2
2
  module API
3
- VERSION = "0.0.6"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
data/lib/cryptsy/api.rb CHANGED
@@ -86,6 +86,10 @@ module Cryptsy
86
86
  call_private_api("getmarkets", {})
87
87
  end
88
88
 
89
+ def getwalletstatus
90
+ call_private_api("getwalletstatus", {})
91
+ end
92
+
89
93
  def mytransactions
90
94
  call_private_api("mytransactions", {})
91
95
  end
@@ -108,8 +112,24 @@ module Cryptsy
108
112
  call_private_api("mytrades", params)
109
113
  end
110
114
 
111
- def allmytrades
112
- call_private_api("allmytrades", {})
115
+ def allmytrades(startdate=nil,enddate=nil)
116
+ params = {}
117
+
118
+ if !startdate.nil?
119
+ if startdate.is_a?(Date)
120
+ startdate = startdate.strftime("%Y-%m-%d")
121
+ end
122
+ params[:startdate] = startdate
123
+ end
124
+
125
+ if !enddate.nil?
126
+ if enddate.is_a?(Date)
127
+ enddate = enddate.strftime("%Y-%m-%d")
128
+ end
129
+ params[:enddate] = enddate
130
+ end
131
+
132
+ call_private_api("allmytrades", params)
113
133
  end
114
134
 
115
135
  def myorders(marketid)
@@ -156,6 +176,14 @@ module Cryptsy
156
176
  end
157
177
  end
158
178
 
179
+ def mytransfers
180
+ call_private_api("mytransfers", {})
181
+ end
182
+
183
+ def makewithdrawl(address, amount)
184
+ call_private_api("makewithdrawl", {address: address, amount: amount})
185
+ end
186
+
159
187
  private
160
188
  def call_public_api(all_markets, single_market, marketid=nil)
161
189
  Cryptsy::API::PublicMethod.new.execute_method(all_markets, single_market, marketid)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptsy-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic Barthelemy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-02 00:00:00.000000000 Z
11
+ date: 2014-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty