GithubHelp home page GithubHelp logo

theotherdavid / kraken-meta-order Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 43 KB

This is a tool to help make and manage more complex crypto orders with the Kraken exchange.

License: MIT License

Dockerfile 4.32% Go 94.96% Shell 0.72%

kraken-meta-order's Introduction

kraken-meta-order

This is a tool to help make and manage more complex crypto orders with the Kraken exchange. I kind of abandoned it when the crypto craze of 2021 died down. Maybe I'll start working on it again if Bitcoin gets back to 50k.

Start the app with:

docker-compose up

The DB will start on port 5432, and the server will listen on port 8080. You can use the included Postman collection to create, read, update and delete meta orders.

kraken-meta-order's People

Contributors

theotherdavid avatar

Watchers

 avatar

kraken-meta-order's Issues

Create meta-orders and store in DB

Implement Create Meta-Order endpoint, taking in a JSON object and persisting it in the DB.

Request:
{
"metaOrderId": null,
"metaOrderType": enum (currently only STOP_LOSS_TAKE_PROFIT)
"status": enum (ACTIVE, COMPLETED, CANCELLED, ERROR)
"stopLossTakeProfit": {
"stopLossPrice": double,
"takeProfitPrice": double
}
}

Implement Docker Volume

Currently, the database is wiped and recreated every time we start the app. This isn't ideal. I think Volumes are the way to persist data outside the container.

Write Get All Meta Orders function

This should be a GET request.
I think by default we should only return inactive, but have an option to include COMPLETED records too.

Add Find Meta-Order endpoint

We need a way to look up all active orders. So we should add status=ACTIVE as a query parameter, and then have the SQL query apply that in the WHERE clause.

Add meta order price table

Currently, we're storing the orders themselves, but not the prices. Because orders like SL/TP can have multiple prices, we should make this a separate table with an FK to META_ORDER.

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.