coinbase-moneymoney
coinbase-moneymoney copied to clipboard
Currency error in line 70
Hi Martin!
When I try to update my Coinbase account, some data transformation regarding the currency
as returned from Coinbase breaks the script.
The Log reads as follows:
21:21:04 Lade Kontenliste ...
Web Banking Engine: Using user-supplied extension Coinbase.lua version 1.80.`
Protocol version: Web Scraping
Server address: https://api.coinbase.com
Sending: GET https://api.coinbase.com/v2/user
21:21:05 Received: {"data":{"id":"XXX","name":"XXX","username":null,"profile_location":null,"profile_bio":null,"profile_url":null,"avatar_url":"https://images.coinbase.com/XXX","resource":"user","resource_path":null}}
Web Banking account: Coinbase (Main)
Lade Wertpapierbestand für Coinbase ...
Sending: GET https://api.coinbase.com/v2/accounts?limit=100
21:21:06 Received:
{"data":[{"id":"XXX","name":"FET Wallet"{
"data": [
{
"id": "XXX",
"name": "FET Wallet",
"primary": true,
"type": "wallet",
"balance": {
"amount": "0.00000000",
"currency": "FET"
},
"created_at": "2021-12-23T21:09:02Z",
"updated_at": "2024-02-24T23:47:16Z",
"resource": "account",
"resource_path": "/v2/accounts/08bb7d13-3dde-5e89-ad3a-cdc6451af44d",
"currency": {
"asset_id": "3672ab4a-25e0-57a8-b029-99239c081958",
"code": "FET",
"color": "#1D2743",
"exponent": 8,
"name": "Fetch.ai",
"slug": "fetch",
"type": "crypto",
"rewards": null
},
"allow_deposits": true,
"allow_withdrawals": true
}
],
"pagination": {
"ending_before": null,
"limit": 100,
"next_starting_after": null,
"next_uri": null,
"order": "desc",
"previous_ending_before": null,
"previous_uri": null,
"starting_after": null
},
...
}
Coinbase.lua:70: attempt to concatenate upvalue 'currency' (a nil value)
Is this an issue with the Coinbase API?
Any hints appreciated!
Best Sascha