Git Product home page Git Product logo

crypto-portfolio's People

Contributors

matthewpageuk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

crypto-portfolio's Issues

Backup / restore

Download a backup file - upload it again

File format ?

XML, Json, CSV, Custom

Data

Tokens
Transactions

Performance

Time to import 100,000 transactions
Check php execution limit
File size

Number formatting

Needs to look cleaner....

Remove trailing zeros

Round for display purposes

Use > 0.001 if rounds to zero

Price - £0.0000026
Price - £234,453.0000054 - Display £234,453.00

?

Tiny fractions issue - 1.0E-5 BTC

So tiny fractions like 0.00001 are not showing correctly.

Also need to look at 32 / 64 number issues and what the requirements are going to be

Edit user profile

Name
Email
Password
Confirm password

Breeze?

  • View
  • Link on menu
  • Route
  • Controller
  • Rules / auth specific?
  • Test code

CryptoTransaction - destroy needs a formrequest and rules

Transaction can not be deleted if it results in a negative balance.

Need to do a play back of all transactions to make sure there is no historic negative balance.

TransactionCollection :: validateTransactions() - checks them all ?

  • FormRequest
  • Validation rules
  • Transaction validation
  • Test code

😶

Transaction profit and loss stats

Calculate the related buy / sell transactions.

Buy order - show transaction where those tokens were sold
Sell order - show transactions where those tokens were purchased.

eg..

_Buy 1,000 at £1.50

Sold 400 at £1.76
Sold 600 at £1.90_

Profit loss on sold tokens
Still hodl quantity
Profit per day / month
Percentages

Transaction collection tests

Test all methods ...

Need good test cases, and edge cases / all possiblities?

public function sumCurrency( string $key ): Currency

public function sumQuantity( string $key ): Quantity

private function sumNumber( string $key ): Number

public function balance(  $at = null, $recalculate = true ): Quantity

public function averageBuyPrice(): Currency

public function averageSellPrice(): Currency

public function averageHodlBuyPrice(): Currency

public function isValid(): bool

private function calcBalance( ?Carbon $at = null, ?Quantity $balance = null ): Quantity

private function calcAveragePrice( $type = CryptoTransaction::BUY, Currency $total = null, Quantity $quantity = null ): Currency

private function validateTransactions( $balance = 0 ): bool

public function unsoldTransactions( Carbon $at = null ): TransactionCollection

Future transaction dates

Check the rule is working, passes on +1 day, but need a test to see if the Time is also being taken into account.

Try +2 hours

Requests

StoreTransactionRequest
UpdateTransactionRequest

Tests

AddTransactionTest
EditTransactionTest

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.