#   <font >Get User Balance Transaction Records</font>
##  Description
>   This function allows Operator to query previous balance operation for target player via transaction code. This is to query and understand if previous transaction is successfully updated.

> Request method:（ Host-> BeSoft）:post 

> Encoding method：application/x-www-form-urlencoded

> Besoft The response data format is: application/json

##  Method URL
> {besoftapi}/api/game/usertradeinfo

##  Request Parameters

|Name	|  Type   | Required    |	Description |
|--------|-----|--------|--------|
|cert|          String     |Y|	        security code|
|extension1|	String     |Y|	        agent Id|
| traceid     | string | N    | Unique id query (If the traceid is not empty, you do not need to enter the following parameters)              |
| user       | String | N    | player account queried                                                         |
|startdate|     String     |N|	        Need to convert datetime to long  format. 1517265756000 : 2018/01/30 06:42:36(GMT+8)Start date and time|
|enddate|       String     |N|	        Need to convert datetime to long  format. 1517265756000 : 2018/01/30 06:42:36(GMT+8)End date and time|
|page|          Int32      |N|	        start from 0 |
|pagesize|	    Int32      |N|	        maximum 2000


## Example1
- URL:
    - http://127.0.0.1:8000/api/game/usertradeinfo
- HTTP Method
    -   POST
- Form Data
    > Content-Type: application/x-www-form-urlencoded
    ``` 
    cert:v8VMKKzlPpD0te4rX99Hgefs3PQrBFWJKiuUqg6Y
    extension1:adminweb
    user:Guest492
    startdate:1700122818110
    enddate:1700123037718
    page:0
    pagesize:20
    ```

## Example2
- URL:
    - http://127.0.0.1:8000/api/game/usertradeinfo
- HTTP Method
    -   POST
- 表单数据
    > Content-Type: application/x-www-form-urlencoded
    ``` 
    cert:v8VMKKzlPpD0te4rX99Hgefs3PQrBFWJKiuUqg6Y
    extension1:adminweb
    traceid:fasdferq2432
    ```
	
	
##  Return Result

|Nmae|	Type    |	Description    |
|--------|----------|--------|
|status|            Int32           |status code|
|totalsize|         Int32           |total transactions in query result|
|result|            array           |Result data array|
|result.user|       string          |Player account|
|result.sellbuy|    Int32          |1. Transfer score to player  , 2. Transfer score from player|
|result.createdate| Int64           |TimeStamp of data addition (MS)|
|result.extension1| string          |Agent account|
|result.traceid     | string          | Unique id |
|result.tradescore  | double | Transaction amount| 
|result.beforeuserscore  | double | Player pre-trade balance |
|result.afteruserscore  | double | Player post-trade balance | 

## Successful  Result


```

{
    "status": 1,
    "totalsize": 2,
    "result": [
        {
            "user": "test1",
            "extension1": "admin",
            "sellbuy": "2",
            "tradescore": "10.00",
            "createdate": 1558980270793,
            "traceid": "fasdferq2432"
            "beforeuserscore": "110.00",
            "tradescore": "100.00",
        },
        {
            "user": "test1",
            "extension1": "admin",
            "sellbuy": "1",
            "tradescore": "10.00",
            "createdate": 1558980270793,
            "traceid": "fasgfd345fs"
            "beforeuserscore": "110.00",
            "tradescore": "120.00",
        }
    ]
}

```
##  Failed Result
```
{"status":1, "totalsize": 0,"result":[]}
```

##   Failed Result

```
{
"status": 0
}
```