# Floor API

### Get list of supported NFT collections <a href="#huo-qu-yu-suan-ke-mu-v2" id="huo-qu-yu-suan-ke-mu-v2"></a>

```
## Request
curl -X "GET" "https://oracle-api.banksea.finance/moonbeam/v1/floor_price/list" \
     -H 'x-api-key: test-api-key' \
     -H 'Content-Type: application/json; charset=utf-8'
```

* Interface: /moonbeam/v1/floor\_price/list
* Method: GET
* Data Format: JSON
* Response Data:

| Field             | Type   | Description                                 |
| ----------------- | ------ | ------------------------------------------- |
| collection        | String | The NFT collection.                         |
| name              | String | The name of the NFT collection.             |
| address\_contract | String | The contract address of the NFT collection. |

*   Response Example:

    ```json
    {
        "success": true,
        "code": "200",
        "message": "success",
        "data": [
            {
                "collection": "beanies",
                "name": "BEANS NFT",
                "address_contract": "0xd3A9c48Df4d9342dc1A0EE2c185CE50588729Fa9"
            }
        ]
    }
    ```

### Get NFT collection AI floor price <a href="#huo-qu-yu-suan-ke-mu-v2" id="huo-qu-yu-suan-ke-mu-v2"></a>

```
## Request
curl -X "POST" "https://oracle-api.banksea.finance/moonbeam/v1/floor_price" \
     -H 'x-api-key: test-api-key' \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
    "collection":"beanies"
}'
```

* Interface: /moonbeam/v1/floor\_price
* Method: POST
* Data Format: JSON
* Request Parameter:

| Parameter  | Type   | Required | Description         |
| ---------- | ------ | -------- | ------------------- |
| collection | String | Y        | The NFT collection. |

*   Request Example:

    ```
    {
        "collection":"beanies"
    }
    ```
* Response Data:

| Field            | Type   | Description                                             |
| ---------------- | ------ | ------------------------------------------------------- |
| floor\_price     | Number | The floor price.                                        |
| avg\_price\_24hr | Number | The avg price of the collection over the past 24 hours. |
| ai\_floor\_price | Number | The AI floor price.                                     |
| timestamp        | Number | timestamp                                               |

*   Response Example:

    ```
    {
        "success": true,
        "code": "200",
        "message": "success",
        "data": {
            "timestamp": 1664334000,
            "floor_price": 22.000000,
            "avg_price_24hr": null,
            "ai_floor_price": 23.697200
        }
    }
    ```

### Get NFT collection AI floor price history <a href="#huo-qu-yu-suan-ke-mu-v2" id="huo-qu-yu-suan-ke-mu-v2"></a>

```
## Request
curl -X "POST" "https://oracle-api.banksea.finance/moonbeam/v1/floor_price/history" \
     -H 'x-api-key: test-api-key' \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
    "collection":"beanies"
}'
```

* Interface: /moonbeam/v1/floor\_price/history
* Method: POST
* Data Format: JSON
* Request Parameter:

| Parameter  | Type   | Required | Description         |
| ---------- | ------ | -------- | ------------------- |
| collection | String | Y        | The NFT collection. |

*   Request Example:

    ```
    {
        "collection":"beanies"
    }
    ```
* Response Data:

| Field            | Type   | Description                                             |
| ---------------- | ------ | ------------------------------------------------------- |
| floor\_price     | Number | The floor price.                                        |
| avg\_price\_24hr | Number | The avg price of the collection over the past 24 hours. |
| ai\_floor\_price | Number | The AI floor price.                                     |
| timestamp        | Number | timestamp                                               |

*   Response Example:

    ```
    {
        "success": true,
        "code": "200",
        "message": "success",
        "data": [
            {
                "timestamp": 1664327439,
                "floor_price": 22.000000,
                "avg_price_24hr": null,
                "ai_floor_price": 24.380500
            },
            {
                "timestamp": 1664334000,
                "floor_price": 22.000000,
                "avg_price_24hr": null,
                "ai_floor_price": 23.697200
            }
        ]
    }
    ```
