theotherdavid / kraken-meta-order Goto Github PK
View Code? Open in Web Editor NEWThis is a tool to help make and manage more complex crypto orders with the Kraken exchange.
License: MIT License
This is a tool to help make and manage more complex crypto orders with the Kraken exchange.
License: MIT License
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.
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.
Pass in an ID, get the order out of the system.
This should be a GET request.
Integrate with their API and get the price for a certain coin (currency pair?). For now, just return the response to the API.
I guess this could be a DELETE method.
But we don't actually "DELETE" anything, of course. We would set it to CANCELLED.
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
}
}
This should be a GET request.
I think by default we should only return inactive, but have an option to include COMPLETED records too.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.