GithubHelp home page GithubHelp logo

zolbayars / crypto-trading-report-generator Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 3.0 499 KB

Crypto trading journal & insights

Home Page: https://cryptobaldan.com

License: MIT License

JavaScript 1.57% TypeScript 97.42% CSS 1.01%
binance-futures crypto-trading trading-journal trading-report trading-insight

crypto-trading-report-generator's People

Contributors

zolbayars avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

crypto-trading-report-generator's Issues

Merge entry/exit orders and modify the columns

The table should contain the following columns:

  • Entry date
  • Exit date (need to merge the exit order with the entry order)
  • Symbol
  • Direction
  • Entry price
  • Exit price (need to merge the exit order with the entry order)
  • Position size
  • Fees (need to merge the exit order with the entry order)
  • PnL
  • PnL %

querying with fromId is not fetching the latest orders

The log:

The latest trade is:  2253357350
Syncing the trades
Calling binance with fapi/v1/userTrades { fromId: '22533573501' }
Result from Binance 200 OK
Syncing 0 trades

Seems like we're using a wrong last id ๐Ÿค”

Hiding trades when there are open trades

It's hiding a trade when there's an open trade with the same pair as the last closed trade.

This one should be worked on after #8 is done.

And another issue of discordant merged trades being generated because of this

Duplicate merged trades

Samples:

*************************** 1. row ***************************
           id: 804
    entryDate: 2022-10-29 16:29:23
     exitDate: 2022-10-29 16:23:39
       symbol: SOLUSDT
    direction: 0
   entryPrice: 33.55
    exitPrice: 33.53
         size: 6
          pnl: 0.12
pnlPercentage: 0.0005961251862891207
          fee: 0.00035616
     feeAsset: BNB
    createdAt: 2022-10-30 08:38:35.204487
    updatedAt: 2022-10-30 08:38:35.515826
  entryReason: NULL
   exitReason: NULL
      mistake: NULL
      comment: NULL
*************************** 2. row ***************************
           id: 805
    entryDate: 2022-10-29 19:05:57
     exitDate: 2022-10-29 16:31:38
       symbol: ETHUSDT
    direction: 0
   entryPrice: 1619.73
    exitPrice: 1633
         size: 0.14
          pnl: -1.8578
pnlPercentage: -0.008192723478604457
          fee: 0.00040461
     feeAsset: BNB
    createdAt: 2022-10-30 08:38:35.204487
    updatedAt: 2022-10-30 08:38:35.515826
  entryReason: NULL
   exitReason: NULL
      mistake: NULL
      comment: NULL
*************************** 3. row ***************************
           id: 792
    entryDate: 2022-10-29 16:31:38
     exitDate: 2022-10-29 19:05:57
       symbol: ETHUSDT
    direction: 0
   entryPrice: 1633
    exitPrice: 1619.73
         size: 0.14
          pnl: -1.8578
pnlPercentage: -0.008126148193508877
          fee: 0.00040461
     feeAsset: BNB
    createdAt: 2022-10-30 08:38:35.182515
    updatedAt: 2022-10-30 08:38:35.182515
  entryReason: NULL
   exitReason: NULL
      mistake: NULL
      comment: NULL
*************************** 4. row ***************************
           id: 793
    entryDate: 2022-10-29 16:23:39
     exitDate: 2022-10-29 16:29:23
       symbol: SOLUSDT
    direction: 0
   entryPrice: 33.53
    exitPrice: 33.55
         size: 6
          pnl: 0.12
pnlPercentage: 0.0005964807634953772
          fee: 0.00035616
     feeAsset: BNB
    createdAt: 2022-10-30 08:38:35.182515
    updatedAt: 2022-10-30 08:38:35.182515
  entryReason: NULL
   exitReason: NULL
      mistake: NULL
      comment: NULL

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.