{"id":15632147,"url":"https://github.com/khiav223577/ftx_exchange_api","last_synced_at":"2025-07-01T10:33:20.772Z","repository":{"id":40498080,"uuid":"406917408","full_name":"khiav223577/ftx_exchange_api","owner":"khiav223577","description":"FTX Exchange API Ruby SDK","archived":false,"fork":false,"pushed_at":"2024-09-14T18:22:23.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T06:36:11.109Z","etag":null,"topics":["api","cryptocurrency","cryptocurrency-api","cryptocurrency-exchanges","ftx","ftx-exchange","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/khiav223577.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-15T20:35:40.000Z","updated_at":"2024-09-14T18:22:26.000Z","dependencies_parsed_at":"2024-10-23T02:00:54.030Z","dependency_job_id":null,"html_url":"https://github.com/khiav223577/ftx_exchange_api","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.04761904761904767,"last_synced_commit":"faf6cafb3c46a03e274d93f70640bc288b8a48e8"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":"khiav223577/gem_template","purl":"pkg:github/khiav223577/ftx_exchange_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khiav223577%2Fftx_exchange_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khiav223577%2Fftx_exchange_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khiav223577%2Fftx_exchange_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khiav223577%2Fftx_exchange_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khiav223577","download_url":"https://codeload.github.com/khiav223577/ftx_exchange_api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khiav223577%2Fftx_exchange_api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262944323,"owners_count":23388733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","cryptocurrency","cryptocurrency-api","cryptocurrency-exchanges","ftx","ftx-exchange","ruby"],"created_at":"2024-10-03T10:42:45.177Z","updated_at":"2025-07-01T10:33:20.700Z","avatar_url":"https://github.com/khiav223577.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FtxExchangeApi\n\n[![Gem Version](https://img.shields.io/gem/v/ftx_exchange_api.svg?style=flat)](http://rubygems.org/gems/ftx_exchange_api)\n[![Build Status](https://github.com/khiav223577/ftx_exchange_api/workflows/Ruby/badge.svg)](https://github.com/khiav223577/ftx_exchange_api/actions)\n[![RubyGems](http://img.shields.io/gem/dt/ftx_exchange_api.svg?style=flat)](http://rubygems.org/gems/ftx_exchange_api)\n[![Code Climate](https://codeclimate.com/github/khiav223577/ftx_exchange_api/badges/gpa.svg)](https://codeclimate.com/github/khiav223577/ftx_exchange_api)\n[![Test Coverage](https://codeclimate.com/github/khiav223577/ftx_exchange_api/badges/coverage.svg)](https://codeclimate.com/github/khiav223577/ftx_exchange_api/coverage)\n\n## Supports\n- Ruby 2.2 ~ 2.7\n\n## Installation\n\n```ruby\ngem 'ftx_exchange_api'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install ftx_exchange_api\n\n## Configuration\n\n### Set timeout time\n\n```rb\n# default config\nFtxExchangeApi.default_config.timeout = 3 # seconds\n\n# custom config\nFtxExchangeApi::PublicApi.new(config: { timeout: 12 })\nFtxExchangeApi::PrivateApi.new(access_key, secret_key, config: { timeout: 12 })\n```\n\n### Logging\n\n```rb\nrequire 'logger'\n\n# default config\nFtxExchangeApi.default_config.logger = Logger.new(STDOUT) # print log to stdand output\nFtxExchangeApi.default_config.logger = Logger.new('log/api.log')\n\n# custom config\nFtxExchangeApi::PublicApi.new(config: { logger: Logger.new(STDOUT) })\nFtxExchangeApi::PrivateApi.new(access_key, secret_key, config: { logger: Logger.new(STDOUT) })\n```\n\n## Usage\n\n### Public Api Examples\n\n```rb\n@api = FtxExchangeApi::PublicApi.new\n```\n\n#### [GET /markets](https://docs.ftx.com/?ruby#get-markets)\n\n\u003e Get markets\n\n\u003cdetails\u003e\n  \u003csummary\u003eShow code\u003c/summary\u003e\n\n```rb\n@api.markets\n```\n\u003c/details\u003e\n\n#### [GET /markets/{market_name}](https://docs.ftx.com/?ruby#get-markets)\n\n\u003e Get single market\n\n\u003cdetails\u003e\n  \u003csummary\u003eShow code\u003c/summary\u003e\n\n```rb\n@api.markets(market_name)\n```\n\u003c/details\u003e\n\n#### [GET /markets/{market_name}/orderbook?depth={depth}](https://docs.ftx.com/?ruby#get-markets)\n\n\u003e Get orderbook\n\n\u003cdetails\u003e\n  \u003csummary\u003eShow code\u003c/summary\u003e\n\n```rb\n# use default parameters\n@api.orderbook(market_name)\n\n# provide all possible parameters\n@api.orderbook(market_name, depth: 3)\n```\n\u003c/details\u003e\n\n### Private Api Examples\n\n```rb\naccess_key = 'YOUR_ACCESS_KEY'\nsecret_key = 'YOUR_SECRET_KEY'\n\n@api = FtxExchangeApi::PrivateApi.new(access_key, secret_key)\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo 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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/khiav223577/ftx_exchange_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhiav223577%2Fftx_exchange_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhiav223577%2Fftx_exchange_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhiav223577%2Fftx_exchange_api/lists"}