rybit 0.1.0 → 0.1.2

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: 0fc85e85a619ae945a47cb7114f12250a91a9c1824e14c3dcee4706e308ada53
4
- data.tar.gz: 94f3eba79d350c0739d1995e1f573742a8445467f6f5eca4e798089d78ba91f6
3
+ metadata.gz: a466b6a116e153db499f7755b86ccab85e332eb733543a8322e9b29ae6ab3e7a
4
+ data.tar.gz: d8736683b11f35ad9f75e398ae86a5e86f978b5bcb5cdfe2f956820fc0d75db0
5
5
  SHA512:
6
- metadata.gz: 68691792f90a58b045d2a0efff437fa73b41b9af9496a62df4883b9f4dfff0eeba4f06cb6676ec839d2cabcc40c983a0a6ad2c5c3f50bf297d95673d77b7ca8a
7
- data.tar.gz: c51e5487f518d1c2c71bf9cc904771f1ecac2d1a4184ab8259e209a51981a55baf35452212aa0897a7fefb8cbb50dc91b88bbb03d243a0ffa3d6fb7c0b0419be
6
+ metadata.gz: 99ec0473683f089ea92434def111ad54788db11ff4af8ff751428341e43d20d68b1735bc492615c6b3541ee7fb90b07de6de3e350db3c7bd21917e1079018a21
7
+ data.tar.gz: 14c57e0c679dddf4e7896b9fe6ba88409a4705e5d7dd5df9bb06e0aca30ae62781df8600563c3dc3f4941d77f6e443551fb665baffa6812b3228c2474ca39143
data/README.md CHANGED
@@ -4,23 +4,33 @@ Bybit API client
4
4
 
5
5
  ## Installation
6
6
 
7
- Install the gem and add to the application's Gemfile by executing:
8
-
9
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
10
-
11
- If bundler is not being used to manage dependencies, install the gem by executing:
12
-
13
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
7
+ ```ruby
8
+ gem 'rybit' # in your Gemfile
9
+ ```
14
10
 
15
11
  ## Usage
16
12
 
17
- TODO: Write usage instructions here
13
+ ```ruby
14
+ client = Rybit::Client.new(
15
+ key: '<your API KEY>',
16
+ secret: '<your SECRET KEY>'
17
+ )
18
+
19
+ client.get_wallet_balance
20
+ ```
18
21
 
19
22
  ## Development
20
23
 
21
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
24
+ * `bin/setup` to install dependencies
25
+ * `rake spec` to run the tests
26
+ * `bin/console` for an interactive prompt
27
+ ---
28
+ * `bundle exec rake install` to install this gem onto your local machine
29
+
30
+ ## Release
22
31
 
23
- 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).
32
+ 1. Update the version number in `version.rb`
33
+ 2. Run `bundle exec rake release`
24
34
 
25
35
  ## Contributing
26
36
 
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'dry-initializer'
4
+
5
+ module Rybit
6
+ class Client
7
+ extend Dry::Initializer
8
+
9
+ option :endpoint, default: -> { 'https://api.bybit.com' }
10
+ option :key
11
+ option :secret
12
+ end
13
+ end
data/lib/rybit/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rybit
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.2'
5
5
  end
data/lib/rybit.rb CHANGED
@@ -1,11 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'rybit/version'
4
-
5
- module Rybit
6
- class Error < StandardError; end
7
-
8
- def self.hi
9
- 'hello world'
10
- end
11
- end
4
+ require_relative 'rybit/client'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rybit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georgy Yuriev
@@ -36,10 +36,12 @@ files:
36
36
  - README.md
37
37
  - Rakefile
38
38
  - lib/rybit.rb
39
+ - lib/rybit/client.rb
39
40
  - lib/rybit/version.rb
40
41
  - sig/rybit.rbs
41
42
  homepage: https://rubygems.org/gems/rybit
42
- licenses: []
43
+ licenses:
44
+ - MIT
43
45
  metadata:
44
46
  homepage_uri: https://rubygems.org/gems/rybit
45
47
  source_code_uri: https://github.com/light-flight/rybit