Giter Club home page Giter Club logo

eibc-client's Introduction

Order-Client

Order-Client is a bot designed to continuously scan for eIBC demand orders and fulfill them.

Features

  • Account Setup: The bot is configured with a Dymension account that can be found in the local keyring. The account is used to fulfill demand orders.

  • Order Refresh: The bot periodically refreshes its demand order list to ensure it has the most up-to-date information. Apart from refreshing the order list, the bot also checks for new orders by subscribing to eIBC events.

  • Order Fulfillment: The bot fulfills unfulfilled pending demand orders it finds on the hub.

  • Balance Checks: Every time the bot attempts to fulfill orders it will first check its balances for the denominations it needs to fulfill them. If it lacks funds for a particular denomination as specified in the order price, it will send an alert by posting a message on Slack, and will skip trying to fulfill that order until its account is topped up.

  • Gas Payment: The bot uses DYM coins to pay for gas. If it runs out of DYM coins, it will send an alert by posting a message on Slack, and will pause all order fulfillments until it is topped up.

  • Order Cleanup: The bot periodically checks and flushes fulfilled demand orders.

Setup

To set up the bot, you need to have Go installed on your machine. Once Go is installed, you can clone this repository and run the bot.

Usage

To run the bot, use the following command:

Local

make install

order-client --config <path-to-config-file>

Docker

make docker-build

docker run -v <path-to-config-file>:/.order-client.yaml order-client --config /.order-client.yaml

eibc-client's People

Contributors

zale144 avatar omritoptix avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.