Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rybit

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rybit

  • 0.2.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Rybit

Bybit Ruby API client

Installation

gem 'rybit' # in your Gemfile

Usage

client = Rybit::Client.new(
  api_key: '<your API KEY>',
  secret_key: '<your SECRET KEY>',
  # testnet: <boolean> (default false)
)

client.get_wallet_balance(accountType: 'CONTRACT')

client.create_order(
  category: 'linear',
  symbol: 'BTCUSDT',
  side: 'Buy',
  positionIdx: 0,
  orderType: 'Limit',
  qty: '0.001',
  price: '10000',
  timeInForce: 'GTC',
  orderLinkId: SecureRandom.uuid
)

NOTE: tesnet credentials are created separately on https://testnet.bybit.com/app/user/api-management

Development

  • bin/setup to install dependencies
  • rake spec to run the tests
  • bin/console for an interactive prompt

  • bundle exec rake install to install this gem onto your local machine

Release

  1. Update the version number in version.rb
  2. Run bundle exec rake release

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/light-flight/rybit.

FAQs

Package last updated on 07 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc