whittlem / coinbaseprotracker

Coinbase Pro Portfolio Tracker
Apache License 2.0
40 stars 22 forks source link

Doge Issue and CSV not saving #8

Open reubadoob opened 2 years ago

reubadoob commented 2 years ago

python3 coinbaseprotracker.py === Bot - BTC-USD =======================================================

*** no active position open ***

=== Bot - ETH-USD =======================================================

=== Bot - DOGE-USD =======================================================

/home/pi/PyCryptoBot/coinbaseprotracker/models/CoinbasePro.py:161: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy df['price'] = df.apply(lambda row: (float(row.executed_value) * 100) / (float(row.filled_size) * 100) if float(row.filled_size) > 0 else 0, axis=1) *** no active position open ***

=== Bot - LTC-USD =======================================================

=== Bot - XLM-USD =======================================================

=== Bot - ADA-USD =======================================================

         `  created_at   market action    type    size   value  fees   price status

2021-06-22 10:42:34+00:00 ADA-USD buy market 189.26 216.02 1.07 1.1357 done

    Current Price : 1.3582

   Purchase Value : 216.02
    Current Value : 257.05

   Maker Sale Fee : 0.00 ( 0.0 )
   Taker Sale Fee : 0.10 ( 0.0004 )

     Maker Profit : 41.03
     Maker Margin : 18.99%

     Taker Profit : 40.93
     Taker Margin : 18.95%

('Unable to save: ', 'tracker.csv')`

reubadoob commented 2 years ago

Issue with Doge and Issue with CSV not being saved.

whittlem commented 2 years ago

Apologies for the slow reply. I have been maxed out with the PyCryptoBot project. I'll look at this next.

whittlem commented 2 years ago

This should be fixed now. Can you confirm?