GithubHelp home page GithubHelp logo

backslash-f / swift-trader Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 8.0 315 KB

A Swift package for connecting and trading on crypto exchanges such as Kucoin and Binance via REST ๐Ÿค‘

License: MIT License

Swift 100.00%
api binance bot crypto kucoin rest swift trading webhook

swift-trader's Issues

Closing orders

Find a way for closing orders (like stop limit) for positions that are already closed, like XBTUSDTM. For example, a cron like would do. Or an algorithm that closes "old" orders after opening a new one. But keep it very simple.

For example, save the recently created UUID of an order; remove all orders for a contract that are different than the one you saved.

Target price validation

Currently there's no validation, like the place order will run even when trading view sends a percentage lower than the current one (e.g.: current is 5%, TV sends a webhook for 3%, the order will be placed) -- I think there's no serious implications, but some validation would be nice (but another network will be needed in this scenario).

Add "short" side support

Long is working fine but it's limited to bull markets.

Add short capabilities to profit from suffering and despair AKA bear market.

  • Same place an order API
  • New JSON argument: side
  • New (or tweak) the trailing stop logic according to a short move

Ticker size issue

E.g.: "44831.53" becomes "44831".
Workaround to not call "https://docs.kucoin.com/futures/#get-open-contract-list" (for now).
"The price specified must be a multiple number of the contract tickSize, otherwise the system will report an
error when you place the order. The tick size is the smallest price increment in which the prices are quoted.

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.