Git Product home page Git Product logo

pamela's People

Contributors

luizparreira avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pamela's Issues

Add `/metrics` command

Pamela should be able to tell the metrics related to each session:

Metrics

  • Return (%)
  • Amont (BTC)

Metrics Portfolio

Portfolio Info:

  • Portfolio Return (session in BTC)
  • Portfolio Amount (session in BTC)

Portfolio Info History (plot graph):

  • History of Portfolio return since start of session, on each rebalancing transaction
  • History of Portfolio amount since start of session, on each rebalancing transaction

History of assets amounts (plot graph):

  • Plot history of how much of each asset the user had on each portfolio transaction

Metrics Benchmark

Benchmark info:

  • Buy and hold portfolio return of each coin
  • Buy and hold portfolio amount of each coin
  • Lazy portfolio rebalance, same % of each coin and hold that (portfolio return)
  • Lazy portfolio rebalance, same % of each coin and hold that (portfolio amount)

Create docs

Create docs for:

  • Modules
  • Functions
  • README.md explaining the project

Argument Error: erlang.bit_size(nil)

Hi,
Trying to compile the project but get stucked to this error:

[info] Running PamelaWeb.Endpoint with Cowboy using http://0.0.0.0:4000
[debug] QUERY OK source="trading_sessions" db=2.8ms
SELECT t0."id", t0."name", t0."running", t0."telegram_user_id", t0."command_id", t0."inserted_at", t0."updated_at" FROM "trading_sessions" AS t0 WHERE (t0."telegram_user_id" IS NULL AND t0."running" IS NULL) []
[error] GenServer #PID<0.428.0> terminating
** (ArgumentError) argument error
:erlang.bit_size(nil)
(nadia) lib/nadia/api.ex:9: Nadia.API.build_url/1
(nadia) lib/nadia/api.ex:93: Nadia.API.request/3
(pamela) lib/pamela/message_handler.ex:7: Pamela.MessageHandler.handle/0
(pamela) lib/pamela/periodic_task.ex:15: Pamela.PeriodicTask.handle_info/2
(stdlib) gen_server.erl:616: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:686: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Last message: :work
State: %{task: #Function<0.71608958/0 in Pamela.Application.start/2>}

  • macOS 10.13.6

Pamela stops rebalancing after a few rebalances

Problem:

Pamela was rebalancing just fine, however, after doing it for maybe 8 or 9 times, it suddenly stopped.

Steps to replicate:

  1. Start a test rebalancing with pamela
  2. Run it for a few times over.

Expected: It should continue until /halt command is triggered
Current: It is stopping by itself

Kick off Checklist:

  • Check Pamela.Trader.rebalance function, it may be failing to pattern match on the with.
  • Consider refactoring the with to other files, should help catch the bug easier

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.