Git Product home page Git Product logo

Comments (4)

nikhilsaraf avatar nikhilsaraf commented on June 19, 2024

@Reidmcc I think that most (if not all) strategies can be coded using a level provider.
Can you provide an example of a strategy that would not fit into the levelProvider interface?

from kelp.

Reidmcc avatar Reidmcc commented on June 19, 2024

An example would be if you wanted to implement criteria in modifySellLevel that aren't exactly the existing price and amount triggers. If you want to know how far out of tolerance the level is, the current modifySellLevel doesn't know that. You might want Kelp to change what it does to each level based on how much the price has changed. The level provider can implement logic based on what the price is, but not what the price was. This would apply for anything that requires comparing the current generated level with the previous offer, and wouldn't have to use the existing tolerance parameters.

Using UpdateWithOps you could implement logic based on what happened to the previous levels. For example, if you wanted to space your levels more widely if the price was moving more quickly, you could count the number of levels that needed modification and if it reaches a threshold regenerate the levels with a passed increased spread parameter.

from kelp.

Reidmcc avatar Reidmcc commented on June 19, 2024

After working on #60 I now know that the level providers can store data across cycles, which would allow the examples I gave above to be done in the level provider.

The remaining case for this issue's suggestion is for customized strategies that use a completely different concept than a strategy that wants to replace offers that were filled. If you weren't doing market making that could well be the case. Metrics based swing trading would be an example. That may be out-of-scope for Kelp if it's intended to always be a market maker.

from kelp.

Reidmcc avatar Reidmcc commented on June 19, 2024

I'm going to go ahead and close this. If a user requests something that requires this we can keep it in mind.

from kelp.

Related Issues (20)

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.