ftx-api 0.2.6 → 0.2.7
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 +4 -4
- data/CHANGELOG.md +4 -1
- data/Gemfile.lock +1 -1
- data/README.md +7 -2
- data/lib/ftx/api/orders.rb +4 -0
- 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: be471f1211cee30497ce74db4b05da88d05345bc8ada1966d26495db15f18890
|
|
4
|
+
data.tar.gz: e7ee23d92d2cf4782b2fcdbdf2c09232460ccafaeb0de6b09bf686bdb3cf4e55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 552a6ed552f1b7ac7fa6063feb2698dd06d6693f38b20cee6fb07cf9bd6eb9b45ac8b3a7db2b1c5210c9dbc5eda695e638508785dce980045f8eadd57d337f68
|
|
7
|
+
data.tar.gz: 4c4f43ce73556ef89af1139f665ba24cb39d83837db32e4461054d8fef9aba8bfa2c6a0801827e92c3dba303814d5aab359443dd37e22df18acccf20b8adb8c4
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
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:
|
data/lib/ftx/api/orders.rb
CHANGED
|
@@ -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"
|
data/lib/ftx/api/version.rb
CHANGED