查询平台进行中订单

说明

接口地址

GET /v2/order/trades

请求参数

名称位置类型必选说明
sortqueryintegertrue排序: 1单价最高、2收入最高、3资源数最高,其他数字:最新
pagequeryintegertrue页数

接口返回

名称类型必选说明
codeintegertrue状态码
msgstringtrue状态说明
request_idstringtrue
data[]SellerOrderDetailfalse

返回示例

{
    "code": 0,
    "msg": "成功",
    "request_id": "102d9628-5f44-4980-bdf4-e09f60031b22",
    "data": [
        {
            "order_no": "2304190664759388169206",
            "order_type": 0,
            "resource_type": 1,
            "owner_address": "",
            "receive_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
            "price_in_sun": 105,
            "min_amount": 100000,
            "min_payout": 23.625,
            "min_freeze": 484,
            "max_amount": 399989,
            "max_payout": 94.497401,
            "max_freeze": 1936,
            "freeze_time": 1681913707,
            "unfreeze_time": 0,
            "create_time": 1681911320,
            "resource_value": 500000,
            "resource_split_value": 100000,
            "frozen_resource_value": 100011,
            "rent_duration": 3,
            "rent_time_unit": "d",
            "rent_expire_time": 1682172907,
            "frozen_balance": 2420,
            "frozen_tx_id": "",
            "is_lock": 1,
            "lock_period": 403200,
            "status": 15
        }
    ],
    "pagination": {
        "page": 1,
        "page_size": 20,
        "has_more": false,
        "total": 1
    }
}

代码示例

curl --location --request GET 'https://feee.io/open/v2/order/trades?sort=<sort>&page=<page>' \
--header 'key: <key>' \
--header 'User-Agent: Feee.io Client/1.0.0 (https://feee.io)'
package main

import (
   "fmt"
   "net/http"
   "io/ioutil"
)

func main() {

   url := "https://feee.io/open/v2/order/trades?sort=%3Csort%3E&page=%3Cpage%3E"
   method := "GET"

   client := &http.Client {
   }
   req, err := http.NewRequest(method, url, nil)

   if err != nil {
      fmt.Println(err)
      return
   }
   req.Header.Add("key", "<key>")
   req.Header.Add("User-Agent", "Feee.io Client/1.0.0 (https://feee.io)")

   res, err := client.Do(req)
   if err != nil {
      fmt.Println(err)
      return
   }
   defer res.Body.Close()

   body, err := ioutil.ReadAll(res.Body)
   if err != nil {
      fmt.Println(err)
      return
   }
   fmt.Println(string(body))
}
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
   CURLOPT_URL => 'https://feee.io/open/v2/order/trades?sort=%3Csort%3E&page=%3Cpage%3E',
   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(
      'key: <key>',
      'User-Agent: Feee.io Client/1.0.0 (https://feee.io)'
   ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

import http.client

conn = http.client.HTTPSConnection("feee.io")
payload = ''
headers = {
   'key': '<key>',
   'User-Agent': 'Feee.io Client/1.0.0 (https://feee.io)'
}
conn.request("GET", "/open/v2/order/trades?sort=%3Csort%3E&page=%3Cpage%3E", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
   .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
   .url("https://feee.io/open/v2/order/trades?sort=<sort>&page=<page>")
   .method("GET", body)
   .addHeader("key", "<key>")
   .addHeader("User-Agent", "Feee.io Client/1.0.0 (https://feee.io)")
   .build();
Response response = client.newCall(request).execute();
上次更新: