ftx-api 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7845a00bf3bf2a3ad58c8ee65a131008f2bf456683674dd2a664db57f6be89e4
4
- data.tar.gz: 0fe0ccbe9faab912eee3250e6610abb499944716a52727e1dbec00d2c2f8a6a9
3
+ metadata.gz: be471f1211cee30497ce74db4b05da88d05345bc8ada1966d26495db15f18890
4
+ data.tar.gz: e7ee23d92d2cf4782b2fcdbdf2c09232460ccafaeb0de6b09bf686bdb3cf4e55
5
5
  SHA512:
6
- metadata.gz: 533647fc948c9b1d9f5c0f331b6c58954c566d6a00bd5d1f6e181eecefcef868e444afc0ba223b3131eb87ae428927642e34a68c2f03dbc700f93f2ecaf301c3
7
- data.tar.gz: 18c12550f422a555b90bfecf648a75883e777cc0c033653bbc77ca8543d02cc16188381d937b7d967773c9bd5b503ab39b6cfbc1a5ce1c8e31e560a4d3a24392
6
+ metadata.gz: 552a6ed552f1b7ac7fa6063feb2698dd06d6693f38b20cee6fb07cf9bd6eb9b45ac8b3a7db2b1c5210c9dbc5eda695e638508785dce980045f8eadd57d337f68
7
+ data.tar.gz: 4c4f43ce73556ef89af1139f665ba24cb39d83837db32e4461054d8fef9aba8bfa2c6a0801827e92c3dba303814d5aab359443dd37e22df18acccf20b8adb8c4
data/CHANGELOG.md CHANGED
@@ -22,4 +22,7 @@
22
22
  - Fix issues with post methods and add Convert endpoint
23
23
 
24
24
  ## [0.2.6] - 2021-10-06
25
- - Implement Fills endpoint including tests
25
+ - Implement Fills endpoint including tests
26
+
27
+ ## [0.2.7] - 2021-10-06
28
+ - Implement orders get_by_client_id endpoint
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ftx-api (0.2.6)
4
+ ftx-api (0.2.7)
5
5
  httparty (~> 0.19)
6
6
  openssl (~> 2.2)
7
7
 
data/README.md CHANGED
@@ -126,9 +126,14 @@ Query for all historical orders:
126
126
  orders.history
127
127
  ```
128
128
 
129
- Fetch a specific order:
129
+ Fetch a specific order by FTX `orderId`:
130
130
  ```ruby
131
- orders.get
131
+ orders.get(order_id)
132
+ ```
133
+
134
+ Fetch a specific order by `clientId`:
135
+ ```ruby
136
+ orders.get_by_client_id(clientId)
132
137
  ```
133
138
 
134
139
  Create a new order:
@@ -16,6 +16,10 @@ class FTX::API::Orders < FTX::API::Private
16
16
  send_request(:get, "/orders/#{order_id}", {})
17
17
  end
18
18
 
19
+ def get_by_client_id(client_id)
20
+ send_request(:get, "/orders/by_client_id/#{client_id}", {})
21
+ end
22
+
19
23
  def create(query = {})
20
24
  raise ArgumentError.new(
21
25
  "Market, side, price (can be nil), tupe and size params required"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module FTX
4
4
  module API
5
- VERSION = "0.2.6"
5
+ VERSION = "0.2.7"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ftx-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - benrs44