Aga-cmc
Aga-cmc is a Ruby gem that provides a convenient way to interact with the CoinMarketCap API and retrieve information about cryptocurrency exchanges. It allows you to fetch data about exchanges, including trading pairs, trading volume, and other relevant information.
Features
- Retrieve detailed information about a specific exchange, including its name, website, and location.
- Fetch trading pairs supported by an exchange, along with their trading volumes and price information.
- Filter exchanges based on specific criteria, such as volume, location, or supported trading pairs.
- Access real-time market data for exchanges, including trading volume, liquidity, and more.
Installation
Install the gem and add to the application's Gemfile by executing:
$ bundle add aga-cmc
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install aga-cmc
Usage
To use Aga-cmc in your application, require the gem and start making requests. Here's a basic example:
require 'cmc'
c = Cmc::Exchange.new({:slug => 'bitcoin'})
response = c.list
puts response.status # Output: 200
puts response.body.data.marketPairs[0].exchangeName # Output: 'Binance'
Contributing
Contributions to Aga-cmc are welcome! If you encounter any issues or have suggestions for improvements, please submit an issue on the repository. Pull requests are also encouraged.
Private License
Version 0.0.3, 01/06/2023
By obtaining a copy of this software and associated documentation files (the "Software"), you agree that the Software is proprietary to AIGreenAnt and is protected under intellectual property laws. This license grants you limited rights to use the Software solely for internal purposes within your organization.
-
License Grant
1.1 You are granted a non-exclusive, non-transferable license to use the Software for internal purposes only.
1.2 You may not distribute, sublicense, sell, or transfer the Software to any third party without prior written permission from AIGreenAnt.
-
Intellectual Property
2.1 The Software and any associated intellectual property rights, including but not limited to copyrights, patents, trademarks, trade secrets, and any other proprietary rights, are and shall remain the exclusive property of AIGreenAnt.
2.2 You may not remove, alter, or obscure any proprietary notices or labels on the Software.
-
Limitation of Liability
3.1 In no event shall AIGreenAnt be liable for any direct, indirect, incidental, special, or consequential damages arising out of the use or inability to use the Software, even if AIGreenAnt has been advised of the possibility of such damages.
-
Termination
4.1 This license is effective until terminated. AIGreenAnt may terminate this license at any time if you fail to comply with the terms and conditions of this agreement.
4.2 Upon termination, you must immediately cease all use of the Software and destroy all copies in your possession or control.
-
Governing Law
5.1 This license shall be governed by and construed in accordance with the laws of Italy, without regard to its conflict of laws principles.
By using the Software, you acknowledge that you have read and understood this license agreement and agree to be bound by its terms and conditions.