View Crypto Portfolio

View crypto asset held in the wallet

To view the amount of crypto asset held in the user account, you can make a get node call with the node_id in the path parameter.

Key Field
Comments

Portfolio

This is the current amount of cryptocurrency held for the account.

user_id :
required
string

The user ID of the user

node_id :
required
string

The node ID of the node

EXAMPLE REQUEST

GET /v3.1/users/5bb6ab05472e2500adffad5a/nodes/5bb81e3085411800991b3b57 HTTP/1.1
Host: uat-api.synapsefi.com
X-SP-USER-IP: 127.0.0.1
X-SP-USER: oauth_BcV9rmzTRKvDix8Ge32uN1qdkhfblgo7CtXQnJsZ|n38dj3h8NE393bv24ovoRY34kd62
Content-Type: application/json
crypto_us_node = "5bb81e3085411800991b3b57"
user.get_node(crypto_us_node)
const cryptoNodeID = "5bb81e3085411800991b3b57";

user.getNode(cryptoNodeID);
crypto_us= “5bb81e3085411800991b3b57”
user.get_user_node(node_id: crypto_us)
$nodeid = '5bb81e3085411800991b3b57';
$full_dehydrate=null;
$force_refresh = null;
$user->get_node($nodeid, $full_dehydrate, $force_refresh);
nodeID := “5bb81e3085411800991b3b57”

data, err := user.GetNode(nodeID)

EXAMPLE RESPONSE

{
    "_id": "5bb81e3085411800991b3b57",
    "_links": {
        "self": {
            "href": "https://uat-api.synapsefi.com/v3.1/users/5bb6ab05472e2500adffad5a/nodes/5bb81e3085411800991b3b57"
        }
    },
    "allowed": "CREDIT-AND-DEBIT",
    "client": {
        "id": "5ade26b4567a900029e2afd2",
        "name": "YY Test Account"
    },
    "extra": {
        "note": null,
        "other": {
            "access_token": "WA-LGXJDJWA82D"
        },
        "supp_id": ""
    },
    "info": {
        "name_on_account": " ",
        "nickname": "My CRYPTO Wallet",
        "portfolio": {
            "BTC": 0.02964738,
            "ETH": 0
        }
    },
    "is_active": true,
    "timeline": [
        {
            "date": 1538793005780,
            "note": "Node created."
        }
    ],
    "type": "CRYPTO-US",
    "user_id": "5bb6ab05472e2500adffad5a"
}