ftx-api 0.2.5 → 0.2.6
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 +19 -1
- data/Gemfile.lock +1 -1
- data/README.md +19 -2
- data/lib/ftx/api/fills.rb +11 -0
- data/lib/ftx/api/version.rb +1 -1
- data/lib/ftx/api.rb +2 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7845a00bf3bf2a3ad58c8ee65a131008f2bf456683674dd2a664db57f6be89e4
|
4
|
+
data.tar.gz: 0fe0ccbe9faab912eee3250e6610abb499944716a52727e1dbec00d2c2f8a6a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 533647fc948c9b1d9f5c0f331b6c58954c566d6a00bd5d1f6e181eecefcef868e444afc0ba223b3131eb87ae428927642e34a68c2f03dbc700f93f2ecaf301c3
|
7
|
+
data.tar.gz: 18c12550f422a555b90bfecf648a75883e777cc0c033653bbc77ca8543d02cc16188381d937b7d967773c9bd5b503ab39b6cfbc1a5ce1c8e31e560a4d3a24392
|
data/CHANGELOG.md
CHANGED
@@ -4,4 +4,22 @@
|
|
4
4
|
- Initial release
|
5
5
|
|
6
6
|
## [0.2.0] - 2021-09-23
|
7
|
-
- Implement public API covering Markets and Futures only
|
7
|
+
- Implement public API covering Markets and Futures only
|
8
|
+
|
9
|
+
## [0.2.1] - 2021-09-23
|
10
|
+
- Empty
|
11
|
+
|
12
|
+
## [0.2.2] - 2021-10-05
|
13
|
+
- Include private API endpoints with tests
|
14
|
+
|
15
|
+
## [0.2.3] - 2021-10-05
|
16
|
+
- Include private API endpoints with tests - further updates
|
17
|
+
|
18
|
+
## [0.2.4] - 2021-10-05
|
19
|
+
- Fix error compact_blank creates for rails db:migrate
|
20
|
+
|
21
|
+
## [0.2.5] - 2021-10-06
|
22
|
+
- Fix issues with post methods and add Convert endpoint
|
23
|
+
|
24
|
+
## [0.2.6] - 2021-10-06
|
25
|
+
- Implement Fills endpoint including tests
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -4,8 +4,6 @@ This gem is a ruby SDK for the FTX crypto exchange REST API.
|
|
4
4
|
|
5
5
|
API docs can be found on the [FTX developer site](https://docs.ftx.com/)
|
6
6
|
|
7
|
-
It is still under development and currently only covers the markets and futures endpoints.
|
8
|
-
|
9
7
|
|
10
8
|
## Installation
|
11
9
|
|
@@ -154,6 +152,25 @@ Note: the create order method is not included as a test, because I have not been
|
|
154
152
|
|
155
153
|
*Check the [FTX API docs](https://docs.ftx.com/#orders) for all parameters*
|
156
154
|
|
155
|
+
### Fills
|
156
|
+
|
157
|
+
Initialize an fills session:
|
158
|
+
```ruby
|
159
|
+
fills = FXT::API::Orders.new(key: 'YOUR FTX KEY', secret: 'YOUR FTX SECRET')
|
160
|
+
```
|
161
|
+
|
162
|
+
Query for all fills:
|
163
|
+
```ruby
|
164
|
+
fills.list
|
165
|
+
```
|
166
|
+
or
|
167
|
+
|
168
|
+
```ruby
|
169
|
+
fills.list(market: 'BTC/USD')
|
170
|
+
```
|
171
|
+
|
172
|
+
Note: market is optional
|
173
|
+
|
157
174
|
### Convert Coins
|
158
175
|
|
159
176
|
Initialize an convert session:
|
data/lib/ftx/api/version.rb
CHANGED
data/lib/ftx/api.rb
CHANGED
@@ -3,8 +3,9 @@ require_relative "../ext/base"
|
|
3
3
|
require_relative "api/version"
|
4
4
|
require_relative "api/config"
|
5
5
|
require_relative "api/markets"
|
6
|
+
require_relative "api/futures"
|
6
7
|
require_relative "api/account"
|
7
8
|
require_relative "api/wallet"
|
8
9
|
require_relative "api/orders"
|
9
|
-
require_relative "api/
|
10
|
+
require_relative "api/fills"
|
10
11
|
require_relative "api/convert"
|
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.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- benrs44
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- lib/ftx/api/base.rb
|
65
65
|
- lib/ftx/api/config.rb
|
66
66
|
- lib/ftx/api/convert.rb
|
67
|
+
- lib/ftx/api/fills.rb
|
67
68
|
- lib/ftx/api/futures.rb
|
68
69
|
- lib/ftx/api/markets.rb
|
69
70
|
- lib/ftx/api/orders.rb
|