Git Product home page Git Product logo

osmo_trade's Introduction

osmo_trade: Making the trading experience seamless.

License

osmo_trade is an open source python SDK made from the perspective of Algorithmic Traders. It is built to trade on Osmosis DEX powered by Cosmos SDK and Tendermint as the consensus engine.

This code is free and publicly available under the Apache 2.0 open source license!

Features of osmo_trade as a package:

  • Very easy to set up any alpha based strategy on osmosis DEX.
  • Modular in nature. We can add any new feature coming on osmosis DEX like Concentrated liquidity without altering the exisiting code.
  • With a bit of customizations in regards to performance, it also can be used CEX-DEX arb which generates majority of the volume on the DEX.

Components in osmo_trade:

  • DataFeed: DataFeed is the class to get the data from the blocks mined already. We haven't configured osmo_trade to have the mempool transactions as of now.
  • TransactionBuilder: This class is used to build your transactions however you want. It'll return the txn_hash, logs, code to tell the user whether the transaction is successful.
  • Strategy: We've setup an example code to really explain what each component is doing. And that is how user just need to make a script like this which will contain the strategy logic.

Detailed documentation can be found in the examples directory where we try to explain each component of the SDK in much detail.

Installation

pip install osmo_trade 

Note:

If you want to run by customizing the SDK itself. Then git clone the repo, make your changes and do:

pip install . in the cloned directory.

Mandatory Step

  • First of all, User have to define the env file in their current working directory with the following fields:

    • MNEMONIC
    • RPC_URL
    • gRPC_host and gRPC_port
    • REST_URL

    A very good example of env file can be found here

FAQ:

What to do when user is getting the following error after installing the package for the first time:

  • when you're getting an error that says mpz object has no to_bytes() attributes
    • pip uninstall gmpy2

osmo_trade's People

Contributors

0xmercury 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.