Code Monkey home page Code Monkey logo

ghostfolio-sync's Introduction

Agustin Alexander

I am a Full Stack Senior Software Engineer from Argentina.

🔭 I worked at Mulesoft doing backend and frontend. And now at Powerflex, focusing on a Python and Typescript, cross-team initiative.

⚡ In my free time I create and contribute to cool open source projects.

📫 How to reach me:  LinkedIn Badge


🛠  Languages and Tools that I use :

Python  Golang  Java  React  Ionic  TypeScript  JavaScript  CSS  HTML  Firebase  MySQL  NodeJS  AWS 

🔥   Some Projects that I built:


✍️ Blog Posts :

ghostfolio-sync's People

Contributors

agusalex avatar cellulosa avatar elgohr avatar longstone avatar paulsp94 avatar

Stargazers

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

Watchers

 avatar

ghostfolio-sync's Issues

Failed create

Hello,

I'm new to self hosting. I'm trying to set up ghostfolio-sync. This is the log i get.

[2024-02-07 18:14:49] Starting ghostfolio-sync Docker...
[2024-02-07 18:14:49] Crontab Not Present running one time now
[2024-02-07 18:14:56] Starting sync
[2024-02-07 18:14:56] Fetching Query
[2024-02-07 18:14:56] Parsing Query
[2024-02-07 18:14:56] unsupported operand type(s) for +=: 'decimal.Decimal' and 'NoneType'
[2024-02-07 18:14:56] Failed create: {"message":["property accountType should not exist"],"error":"Bad Request","statusCode":400}

Request

docker run -e GHOST_HOST=localhost -e GHOST_TOKEN=YOUR_GHOST_TOKEN -e IBKR_TOKEN=IBKR-TOKEN -e IBKR_QUERY=IBKR-QUERY agusalex/ghostfolio-sync

Failed creating

hi there, I'm trying get this to work with Ghostfolio 2.12.0. It seems like few things have changed? Also from the IBKR side?

here's what I get when I try and run the container:


[2023-10-18 16:55:36] Starting ghostfolio-sync Docker...
[2023-10-18 16:55:36] Crontab Not Present running one time now
Traceback (most recent call last):
  File "/usr/app/src/main.py", line 22, in <module>
    ghost.sync_ibkr()
  File "/usr/app/src/SyncIBKR.py", line 74, in sync_ibkr
    account_id = self.create_or_get_IBKR_accountId()
  File "/usr/app/src/SyncIBKR.py", line 253, in create_or_get_IBKR_accountId
    accounts = self.get_account()
  File "/usr/app/src/SyncIBKR.py", line 250, in get_account
    raise Exception(response)
Exception: <Response [502]>
[2023-10-18 16:55:37] Starting sync
[2023-10-18 16:55:37] Fetching Query
[2023-10-18 16:55:37] Parsing Query
[2023-10-18 16:55:39] Fetching Query
,"MIG":"Migranet","MIININGNFT": (bazillion characters in here so had to cut it) return this.prismaService.marketData.deleteMany(
[2023-10-18 16:55:39] Failed creating 
[2023-10-18 16:55:39] Failed to retrieve account ID closing now
[2023-10-18 16:55:39] End sync
gghostfolio-sync exited with code 0

Adapt for docker compose

I'm trying to create this container with docker compose but not succeeding because we it needs the bearer token as an env variable. Would it be possible to supply the ghostfolio user key instead and the script would then fetch the bearer token?

Can be run in local ghostfolio?

Hi team,

I did all the steps, creating an flex query on Interactive Brokers and enabled the Flex Web Service

I put all the information as your instructions and I'm getting this error:

[2023-09-06 10:24:10] Starting ghostfolio-sync Docker...
[2023-09-06 10:24:10] Crontab Not Present running one time now
Traceback (most recent call last):
  File "/usr/app/src/main.py", line 11, in <module>
    ibkr_tokens = os.environ.get("IBKR_TOKEN").split(",")
AttributeError: 'NoneType' object has no attribute 'split'

Can you help me understand what i'm doing wrong?

Thank you

Failed download statements

Hey,

Getting an error trying to sync between IBKR and self-hosted ghostfolio.

Traceback (most recent call last):
  File "/usr/app/src/main.py", line 22, in <module>
    ghost.sync_ibkr()
  File "/usr/app/src/SyncIBKR.py", line 69, in sync_ibkr
    response = client.download(self.ibkrtoken, self.ibkrquery)
  File "/usr/local/lib/python3.9/site-packages/ibflex/client.py", line 114, in download
    stmt_access = request_statement(token, query_id)
  File "/usr/local/lib/python3.9/site-packages/ibflex/client.py", line 142, in request_statement
    raise ResponseCodeError(

Request

docker run -e GHOST_TOKEN="token "-e IBKR_TOKEN=token -e IBKR_QUERY=Ghostfolio -e GHOST_HOST=localhost agusalex/ghostfolio-sync

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.