ftx-api 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -1
- data/lib/ext/array.rb +1 -1
- data/lib/ftx/api/private.rb +1 -1
- data/lib/ftx/api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 798edaba47ec4e363488fe462aafc23a07600270944492e0df2de61bb3a0df39
|
4
|
+
data.tar.gz: 76bf0b23ced4ce5dd444d83dba36a8703481b859f16f05501c52750ec9928522
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7ca004638de0447346204c8be75d8368c1d7208c70bcdaf02b35127e7d863c477abb03deb2a1b04c853ac28c7d229ba6a681a66afd9b978364134525379d254
|
7
|
+
data.tar.gz: 94fa7cc56036cd1911d2a7faa93043359749e46c6be75975128dbc3342fcce4225babebcf98d5ba3260361bd499f2dd51e9c17c780edfe850c35ae74e6f000dd
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -156,7 +156,11 @@ Note: the create order method is not included as a test, because I have not been
|
|
156
156
|
|
157
157
|
## Development
|
158
158
|
|
159
|
-
After checking out the repo, run `bin/setup` to install dependencies.
|
159
|
+
After checking out the repo, run `bin/setup` to install dependencies.
|
160
|
+
|
161
|
+
You'll then need to add environment variables `ENV['FTX_KEY']` and `ENV['FTX_SECRET']`. API keys can be created in your [FTX settings page](https://ftx.com/profile).
|
162
|
+
|
163
|
+
Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
160
164
|
|
161
165
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
162
166
|
|
data/lib/ext/array.rb
CHANGED
data/lib/ftx/api/private.rb
CHANGED
@@ -23,7 +23,7 @@ class FTX::API::Private < FTX::API::Base
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def signature_payload(method, path, query)
|
26
|
-
payload = [ts, method.to_s.upcase, "/api", path].
|
26
|
+
payload = [ts, method.to_s.upcase, "/api", path].compact_empty
|
27
27
|
|
28
28
|
if method==:post
|
29
29
|
payload.push(query.to_json)
|
data/lib/ftx/api/version.rb
CHANGED