Aga-architecture

Aga-architecture is a Ruby gem that provides a convenient way to receive cryptocurrency payloads, format them into messages, and send them via Telegram. It enables seamless integration between your cryptocurrency system and Telegram, allowing you to deliver important updates and information to your users in real-time.

Features

  • Receive cryptocurrency payloads from your system or external APIs.
  • Format and customize the payload data into informative messages suitable for Telegram.
  • Support for various types of cryptocurrency data, including price updates, market trends, news, and more.
  • Integration with the Telegram Bot API for easy and secure message sending.

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add aga-architecture

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install aga-architecture

Usage

To use Aga-architecture in your application, require the gem and start making requests. Here's a basic example:

require 'architecture'

a = Architecture::Middleware.new(start: 1, service: :arbitrage, movement: 0)
response = a.run

puts response

# Output:

["šŸ¤‘<b>MOVEMENT 1/06</b> šŸ¤‘\n\nCrypto: <b>Bitcoin (BTC)</b>\nšŸš©: <b>BitMart($ 26,546.85393333)</b>\nšŸ: <b>Bittrex($ 26,685.88931023)</b>\nšŸ’ø: <b>0.52%</b>\n\n  ========================== \nšŸ¤‘<b>MOVEMENT 2/06</b> šŸ¤‘\n\nCrypto: <b>Ethereum (ETH)</b>\nšŸš©: <b>BitMart($ 1,842.74209494)</b>\nšŸ: <b>Bittrex($ 1,855.85752369)</b>\nšŸ’ø: <b>0.71%</b>\n\n  ========================== \nšŸ¤‘<b>MOVEMENT 3/06</b> šŸ¤‘\n\nCrypto: <b>Xrp (XRP)</b>\nšŸš©: <b>Bittrex($ 0.53098908)</b>\nšŸ: <b>Crypto.com Exchange($ 0.53294904)</b>\nšŸ’ø: <b>0.37%</b>\n\n  ========================== \nšŸ¤‘<b>MOVEMENT 4/06</b> šŸ¤‘\n\nCrypto: <b>Litecoin (LTC)</b>\nšŸš©: <b>Bittrex($ 88.69185857)</b>\nšŸ: <b>MEXC($ 89.40816088)</b>\nšŸ’ø: <b>0.81%</b>\n"]

Contributing

Contributions to Aga-architecture 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.2, 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.