Git Product home page Git Product logo

go-dex-client's Introduction

go-dex-client

License Codacy Badge PRs Welcome

A client implementation for Stakenet's XSN DexAPI (Decentralized Exchange) written in golang.

The official XSN DexAPI with a trading bot example written in Scala can be found here: github.com/X9Developers/DexAPI. It also has an extensive documentation how to set up all the required components on your machine which is mandatory to get this bot running, since this repository only provides an alternative DexAPI Client implementation.

Components

alt text

In order to setup all mandatory components on your VM, have a look infrastructure.md which is a step by step installation guide.

Run the client

Once the mandatory components are installed, you can head over to DexAPI Client installation.md and get the client running. It has basic functionality to list, place and cancel orders.

Create stub via protoc (if not up-to-date)

Use the following link to install the prerequisites (https://grpc.io/docs/quickstart/go/):

  1. install protoc compiler (3.6.1+)
  2. install protoc-gen-go compiler plugin

Generate a stub by using the lssdrpc.proto file

The latest lssdrpc.proto file can be found on: github.com/X9Developers/DexAPI/releases

This lssdrpc.proto has to be copied to the lssdrpc directory and the following commands have to be executed.

Go to the project root, execute the following command to generate a go client for the lssdrpc API:

  1. cd lssdrpc/
  2. protoc -I . lssdrpc.proto --go_out=plugins=grpc:.

which will output a lssdrpc.rb.go that has client and server connectors automatically generated.

go-dex-client's People

Contributors

cwntr avatar

Watchers

James Cloos 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.