Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating dump Coinbase pro #1

Open
huggyvilla opened this issue Jan 10, 2022 · 4 comments
Open

Error creating dump Coinbase pro #1

huggyvilla opened this issue Jan 10, 2022 · 4 comments

Comments

@huggyvilla
Copy link

Hi Lee,

I tried to get the dump to work with Coinbase Pro and this is what the CMD spat out (hope it helps):

C:\xampp\cryptocredible-main>php cryptocredible sync:coinbase-pro --dump

        Coinbase Pro

  • Fetch transactions     *
    

Open Coinbase Pro connection: ✔
Fetch transactions for:
1INCH Wallet: ✔
AAVE Wallet: ✔
ACH Wallet: ✔
ADA Wallet: ✔
AGLD Wallet: ✔
ALCX Wallet: ✔
ALGO Wallet: ✔
AMP Wallet: ✔
ANKR Wallet: ✔
API3 Wallet: ✔
ARPA Wallet: ✔
ASM Wallet: ✔
ATOM Wallet: ✔
AUCTION Wallet: ✔
AVAX Wallet: ✔
AXS Wallet: ✔
BADGER Wallet: ✔
BAL Wallet: ✔
BAND Wallet: ✔
BAT Wallet: ✔
BCH Wallet: ✔
BICO Wallet: ✔
BLZ Wallet: ✔
BNT Wallet: ✔
BOND Wallet: ✔
BTC Wallet: ✔
BTRST Wallet: ✔
CGLD Wallet: ✔
CHZ Wallet: ✔
CLV Wallet: ✔
COMP Wallet: ✔
COTI Wallet: ✔
COVAL Wallet: ✔
CRO Wallet: ✔
CRV Wallet: ✔
CTSI Wallet: ✔
CVC Wallet: ✔
DAI Wallet: ✔
DASH Wallet: ✔
DDX Wallet: ✔
DESO Wallet: ✔
DNT Wallet: ✔
DOGE Wallet: ✔
DOT Wallet: ✔
ENJ Wallet: ✔
ENS Wallet: ✔
EOS Wallet: ✔
ETC Wallet: ✔
ETH Wallet: ✔
EUR Wallet: ✔
FARM Wallet: ✔
FET Wallet: ✔
FIL Wallet: ✔
FORTH Wallet: ✔
FOX Wallet: ✔
FX Wallet: ✔
GALA Wallet: ✔
GBP Wallet: ✔
GNT Wallet: ✔
GODS Wallet: ✔
GRT Wallet: ✔
GTC Wallet: ✔
GYEN Wallet: ✔
ICP Wallet: ✔
IDEX Wallet: ✔
IMX Wallet: ✔
IOTX Wallet: ✔
JASMY Wallet: ✔
KEEP Wallet: ✔
KNC Wallet: ✔
KRL Wallet: ✔
LCX Wallet: ✔
LINK Wallet: ✔
LOOM Wallet: ✔
LPT Wallet: ✔
LRC Wallet: ✔
LTC Wallet: ✔
MANA Wallet: ✔
MASK Wallet: ✔
MATIC Wallet: ✔
MCO2 Wallet: ✔
MDT Wallet: ✔
MIR Wallet: ✔
MKR Wallet: ✔
MLN Wallet: ✔
MUSD Wallet: ✔
NKN Wallet: ✔
NMR Wallet: ✔
NU Wallet: ✔
OGN Wallet: ✔
OMG Wallet: ✔
ORN Wallet: ✔
OXT Wallet: ✔
PAX Wallet: ✔
PERP Wallet: ✔
PLA Wallet: ✔
POLS Wallet: ✔
POLY Wallet: ✔
POWR Wallet: ✔
QNT Wallet: ✔
QUICK Wallet: ✔
RAD Wallet: ✔
RAI Wallet: ✔
RARI Wallet: ✔
RBN Wallet: ✔
REN Wallet: ✔
REP Wallet: ✔
REQ Wallet: ✔
RGT Wallet: ✔
RLC Wallet: ✔
RLY Wallet: ✔
SHIB Wallet: ✔
SKL Wallet: ✔
SNX Wallet: ✔
SOL Wallet: ✔
SPELL Wallet: ✔
STORJ Wallet: ✔
SUKU Wallet: ✔
SUPER Wallet: ✔
SUSHI Wallet: ✔
TRAC Wallet: ✔
TRB Wallet: ✔
TRIBE Wallet: ✔
TRU Wallet: ✔
UMA Wallet: ✔
UNI Wallet: ✔
USDC Wallet: ✔
USDT Wallet: ✔
UST Wallet: ✔
VGX Wallet: ✔
WBTC Wallet: ✔
WCFG Wallet: ✔
WLUNA Wallet: ✔
XLM Wallet: ✔
XRP Wallet: ✔
XTZ Wallet: ✔
XYO Wallet: ✔
YFI Wallet: ✔
YFII Wallet: ✔
ZEC Wallet: ✔
ZRX Wallet: ✔

Dumping data to ./../coinbase pro-transaction-dump-2022-01-10 11:23:28.json: failed

ErrorException

file_put_contents(./../coinbase pro-transaction-dump-2022-01-10 11:23:28.json): Failed to open stream: No such file or directory

at C:\xampp\cryptocredible-main\app\Commands\AbstractSyncCommand.php:111
107▕ ->append($this->exchangeName.'-transaction-dump-'.now().'.json')
108▕ ->lower();
109▕ $this->newLine();
110▕ $this->task("Dumping data to {$outputDir}", function () use ($outputDir, $transactions) {
➜ 111▕ file_put_contents($outputDir, $transactions->toJson());
112▕ });
113▕ }
114▕ }
115▕

1 C:\xampp\cryptocredible-main\app\Commands\AbstractSyncCommand.php:111
file_put_contents("./../coinbase pro-transaction-dump-2022-01-10 11:23:28.json", "[{"id":"1451715444","amount":"0.0005000000000000","balance":"0.0005000088366767","created_at":"2019-06-15T15:15:41.445782Z","type":"transfer","details":{"transfer_id":"f22363fc-9187-4fc3-bf7c-2556d3f872b6","transfer_type":"deposit"},"currency":"BCH"},{"id":"536157932","amount":"0.0000000088366767","balance":"0.0000000088366767","created_at":"2017-12-19T00:28:30.085466Z","type":"transfer","details":{"source":"fork","source_account_id":"f219b7b7-980d-426b-beb0-1e60e97af48a","ticker":"BCH"},"currency":"BCH"},{"id":"8223379118","amount":"-0.2150367400000000","balance":"0.0000000062311484","created_at":"2021-06-21T21:47:05.052136Z","type":"match","details":{"order_id":"c7d9d739-637a-42e8-bab3-477d08083e42","product_id":"BTC-GBP","trade_id":"19972032"},"currency":"BTC"},{"id":"8223379101","amount":"-0.0250000000000000","balance":"0.2150367462311484","created_at":"2021-06-21T21:47:05.045206Z","type":"match","details":{"order_id":"c7d9d739-637a-42e8-bab3-477d08083e42","product_id":"BTC-GBP","t...")

2 C:\xampp\cryptocredible-main\vendor\nunomaduro\laravel-console-task\src\LaravelConsoleTaskServiceProvider.php:49
App\Commands\AbstractSyncCommand::App\Commands{closure}()

C:\xampp\cryptocredible-main>

@leeovery
Copy link
Owner

Not sure why this happens. Could be your file system permissions...

Try specifiying the output directory when running the command using the -o option:

eg. I use the following:

php cryptocredible sync:coinbase-pro -o /Users/leeovery/Downloads

Yours will need to be different obviously based on your local system.

@huggyvilla
Copy link
Author

Hi Leeovery,

thanks for your help. I've updated your app files and without specifying a dir I get this:
C:\xampp\cryptocredible-main>php cryptocredible sync:coinbase-pro
PHP Warning: require(C:\xampp\cryptocredible-main/../../autoload.php): Failed to open stream: No such file or directory in C:\xampp\cryptocredible-main\cryptocredible on line 18

Warning: require(C:\xampp\cryptocredible-main/../../autoload.php): Failed to open stream: No such file or directory in C:\xampp\cryptocredible-main\cryptocredible on line 18
PHP Fatal error: Uncaught Error: Failed opening required 'C:\xampp\cryptocredible-main/../../autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\cryptocredible-main\cryptocredible:18
Stack trace:
#0 {main}
thrown in C:\xampp\cryptocredible-main\cryptocredible on line 18

Fatal error: Uncaught Error: Failed opening required 'C:\xampp\cryptocredible-main/../../autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\cryptocredible-main\cryptocredible:18
Stack trace:
#0 {main}

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

and with this:

C:\xampp\cryptocredible-main>php cryptocredible sync:coinbase-pro -o /Users/leeovery/Downloads/John
PHP Warning: require(C:\xampp\cryptocredible-main/../../autoload.php): Failed to open stream: No such file or directory in C:\xampp\cryptocredible-main\cryptocredible on line 18

Warning: require(C:\xampp\cryptocredible-main/../../autoload.php): Failed to open stream: No such file or directory in C:\xampp\cryptocredible-main\cryptocredible on line 18
PHP Fatal error: Uncaught Error: Failed opening required 'C:\xampp\cryptocredible-main/../../autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\cryptocredible-main\cryptocredible:18
Stack trace:
#0 {main}
thrown in C:\xampp\cryptocredible-main\cryptocredible on line 18

Fatal error: Uncaught Error: Failed opening required 'C:\xampp\cryptocredible-main/../../autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\cryptocredible-main\cryptocredible:18
Stack trace:
#0 {main}
thrown in C:\xampp\cryptocredible-main\cryptocredible on line 18

C:\xampp\cryptocredible-main>

@leeovery
Copy link
Owner

leeovery commented Jan 16, 2022 via email

@huggyvilla
Copy link
Author

Hi Leeovery,

it seems to be running noticed there was an update on the 8th so I've installed that: noticed cmd needs admin to write to the dir. will test it all again..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants