> For the complete documentation index, see [llms.txt](https://edrus.gitbook.io/appgregator-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edrus.gitbook.io/appgregator-api-docs/appgregators/blockchain/analytic-tool-and-social-network/docial/api/wallet/statistic.md).

# Statistic

![](https://2592634121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT5HLPrqZhkeNGgJP37dC%2Fuploads%2Fqxl6Ssk5qcLLyvGxhl28%2FScreen%20Shot%202022-07-07%20at%2013.39.07.png?alt=media\&token=a7349eb0-d320-4fcb-af97-0be950e6ab72)

<mark style="color:blue;">`GET`</mark> `http://localhost:5001/appgregator/us-central1/docial/wallet/statistic/`

#### Query Parameters

| Name                                               | Type   | Description                                |
| -------------------------------------------------- | ------ | ------------------------------------------ |
| name<mark style="color:red;">\*</mark>             | String | qantor.co.id                               |
| connection\_name<mark style="color:red;">\*</mark> | String | docial-1                                   |
| address<mark style="color:red;">\*</mark>          | String | 0x9cbaf4222248dbbb07db3fa8514524936a534b35 |

#### Headers

| Name                                        | Type   | Description                      |
| ------------------------------------------- | ------ | -------------------------------- |
| x-api-key<mark style="color:red;">\*</mark> | String | 43c464439b5507293ba7b315c9875907 |

{% tabs %}
{% tab title="200: OK Success" %}

```javascript
[
    {
        "value": null,
        "transaction_amount": "0",
        "day": 1,
        "position": "buy"
    },
    {
        "value": null,
        "transaction_amount": "0",
        "day": 1,
        "position": "sell"
    },
    {
        "value": null,
        "transaction_amount": "0",
        "day": 7,
        "position": "buy"
    },
    {
        "value": null,
        "transaction_amount": "0",
        "day": 7,
        "position": "sell"
    }
]
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}

```shell
curl --location --request GET 'http://localhost:5001/appgregator/us-central1/docial/wallet/statistic?name=qantor.co.id&connection_name=docial-1&address=0x9cbaf4222248dbbb07db3fa8514524936a534b35' \
--header 'x-api-key: 43c464439b5507293ba7b315c9875907'
```

{% endtab %}

{% tab title="NodeJs - Axios" %}

```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'http://localhost:5001/appgregator/us-central1/docial/wallet/statistic?name=qantor.co.id&connection_name=docial-1&address=0x9cbaf4222248dbbb07db3fa8514524936a534b35',
  headers: { 
    'x-api-key': '43c464439b5507293ba7b315c9875907'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}

{% tab title="PHP - cURL" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://localhost:5001/appgregator/us-central1/docial/wallet/statistic?name=qantor.co.id&connection_name=docial-1&address=0x9cbaf4222248dbbb07db3fa8514524936a534b35',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'x-api-key: 43c464439b5507293ba7b315c9875907'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}
{% endtabs %}
