Skip to main content

Deals

Deals provides information on the Filecoin Network deal statistics.

Deal Count

Description

The number of storage deals on the Filecoin Network.

Request URL

GET: /v2/deals/deal_count

Request Parameters

VariableTypeDescriptionExampleDefault
start_dateSTRINGStart date of the selected period (Optional).2022-07-01The most recent date that the API includes.
end_dateSTRINGEnd date of the selected period (Optional).2022-07-01The most recent date that the API includes.
note

The difference between end_date and start_date should be smaller than 90 days.

Request Examples

Code
import requests

url = "https://api.spacescope.io/v2/deals/deal_count?end_date=2022-07-01&start_date=2022-07-01"

payload={}
headers = {
'authorization': 'Bearer <--Please replace your API key here-->'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Response Schema

VariableTypeDescription
stat_dateDATERefers to the date the data was recorded.
total_regular_deal_countBIGINTCumulative count of all regular deals, including active, expired, and terminated ones.
total_verified_deal_countBIGINTCumulative count for verified deals, including active, expired, and terminated ones.
daily_proposed_regular_deal_countBIGINTThe count for regular deals that are newly proposed (may not be activated yet), calculated in the last 24 hours.
daily_proposed_verified_deal_countBIGINTThe count of verified deals that are newly proposed (may not be activated yet), calculated in the last 24 hours.
daily_activated_regular_deal_countBIGINTThe count for regular deals that are newly activated and started to be fulfilled, calculated in the last 24 hours.
daily_activated_verified_deal_countBIGINTThe count for verified deals that are newly activated and started to be fulfilled, calculated in the last 24 hours.
active_regular_deal_countBIGINTThe count for active regular deals.
active_verified_deal_countBIGINTThe count for active verified deals.
daily_slashed_regular_deal_countBIGINTThe count for slashed regular deals, calculated in the last 24 hours.
daily_slashed_verified_deal_countBIGINTThe count for slashed verified deals, calculated in the last 24 hours.
daily_expired_regular_deal_countBIGINTThe count for expired regular deals, calculated in the last 24 hours.
daily_expired_verified_deal_countBIGINTThe count for expired verified deals, calculated in the last 24 hours.

Response Example

Response
{
"request_id": "4e14a4aa-2368-4029-a660-5a883c0c29f1#644",
"code": 0,
"message": "success.",
"data": [
{
"stat_date": "2022-07-01T00:00:00Z",
"total_regular_deal_count": 1687010,
"total_verified_deal_count": 5172522,
"active_regular_deal_count": 310021,
"active_verified_deal_count": 4556953,
"daily_activated_regular_deal_count": 7,
"daily_activated_verified_deal_count": 8203,
"daily_proposed_regular_deal_count": 16,
"daily_proposed_verified_deal_count": 29867,
"daily_slashed_regular_deal_count": 0,
"daily_slashed_verified_deal_count": 4,
"daily_expired_regular_deal_count": 1496,
"daily_expired_verified_deal_count": 120
}
]
}


Deal Size

Description

The byte size of storage deals on the Filecoin Network.

Request URL

GET: /deals/deal_size

Request Parameters

VariableTypeDescriptionExampleDefault
start_dateSTRINGStart date of the selected period (Optional).2022-07-01The most recent date that the API includes.
end_dateSTRINGEnd date of the selected period (Optional).2022-07-01The most recent date that the API includes.
note

The difference between end_date and start_date should be smaller than 90 days.

Request Examples

Code
import requests

url = "https://api.spacescope.io/v2/deals/deal_size?end_date=2022-07-01&start_date=2022-07-01"

payload={}
headers = {
'authorization': 'Bearer <--Please replace your API key here-->'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Response Schema

VariableTypeDescription
stat_dateDATERefers to the date the data was recorded.
total_regular_deal_sizesNUMERICCumulative deal size for regular deals in bytes, including active, expired, and terminated ones.
total_verified_deal_sizesNUMERICCumulative deal size for verified deals in bytes, including active, expired, and terminated ones.
daily_proposed_regular_deal_sizeNUMERICThe deal size for regular deals that are newly proposed (may not be activated yet), calculated in the past 24 hours.
daily_proposed_verified_deal_sizeNUMERICThe deal size for verified deals that are newly proposed (may not be activated yet), calculated in the past 24 hours.
daily_activated_regular_deal_sizeNUMERICThe deal size for regular deals that are newly activated and started to be fulfilled, calculated in the past 24 hours.
daily_activated_verified_deal_sizeNUMERICThe deal size for verified deals that are newly activated and started to be fulfilled, calculated in the past 24 hours.
active_regular_deal_sizeNUMERICThe active regular deals in bytes.
active_verified_deal_sizeNUMERICThe active verified deals in bytes.
daily_slashed_regular_deal_sizeNUMERICThe deal size for slashed regular deals in bytes, calculated in the last 24 hours.
daily_slashed_verified_deal_sizeNUMERICThe deal size for slashed verified deals in bytes, calculated in the last 24 hours.
daily_expired_regular_deal_sizeNUMERICThe deal size for expired regular deals in bytes, calculated in the last 24 hours.
daily_expired_verified_deal_sizeNUMERICThe deal size for expired verified deals in bytes, calculated in the last 24 hours.

Response Example

Response
{
"request_id": "4e14a4aa-2368-4029-a660-5a883c0c29f1#645",
"code": 0,
"message": "success.",
"data": [
{
"stat_date": "2022-07-01T00:00:00Z",
"total_regular_deal_bytes": 40318816830793330,
"total_verified_deal_bytes": 133155807133843460,
"daily_proposed_regular_deal_size": 443186937856,
"daily_proposed_verified_deal_size": 846458125508608,
"daily_activated_regular_deal_size": 102274689024,
"daily_activated_verified_deal_size": 227161489653760,
"active_regular_deal_size": 8201021703327142,
"active_verified_deal_size": 122329609475399680,
"daily_slashed_regular_deal_size": 0,
"daily_slashed_verified_deal_size": 102407077888,
"daily_expired_regular_deal_size": 48401144654464,
"daily_expired_verified_deal_size": 1371126235136
}
]
}


Deal Collateral

Description

Collateral for storage deals on the Filecoin Network.

Request URL

GET: /deals/deal_collateral

Request Parameters

VariableTypeDescriptionExampleDefault
state_dateDATEThe selected Date (Optional).2022-07-01The most recent date that the API includes.

Request Examples

Code
import requests

url = "https://api.spacescope.io/v2/deals/deal_collateral?end_date=2022-07-01&start_date=2022-07-01"

payload={}
headers = {
'authorization': 'Bearer <--Please replace your API key here-->'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Response Schema

VariableTypeDescription
stat_dateDATERefers to the date the data was recorded.
total_regular_deal_provider_collateralNUMERICThe cumulative amount of collateral for regular deals in FIL. (Includes those that have been released already)
total_verified_deal_provider_collateralNUMERICThe cumulative amount of collateral for verified deals in FIL. (Includes those that have been released already)
active_regular_deal_provider_collateralBIGINTActive regular deal collateral for storage provider in FIL.
active_verified_deal_provider_collateralBIGINTActive verified deal collateral for storage provider in FIL.

Response Example

Response
{
"request_id": "4e14a4aa-2368-4029-a660-5a883c0c29f1#655",
"code": 0,
"message": "success.",
"data": [
{
"stat_date": "2022-07-01T00:00:00Z",
"total_regular_deal_provider_collateral": 10524.791558315694,
"total_verified_deal_provider_collateral": 23274.72610777967,
"active_regular_deal_provider_collateral": 1507.049768353961,
"active_verified_deal_provider_collateral": 21438.011644658796
}
]
}