REST API DOCS
Client APILast Sale

Update Last Sale

PUT
/backend/api/v1/last_sale/reporting/{id}/

Updates an existing Last Sale record by its ID. Note: quantity and price cannot be changed after creation.

Notice:

  • you need to have permission to do this operation. Contact DORRS Admin

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*integer

ID of the Last Sale record to update

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://example.com/backend/api/v1/last_sale/reporting/0/" \  -H "Content-Type: application/json" \  -d '{    "origin": "WSAX",    "symbol": "USDT",    "condition": "buy",    "mpid": "MPID",    "tick_indication": "D",    "quantity": "77",    "price": "44.0000000000000000",    "time": "11:15",    "date": "2023-11-01"  }'
{  "message": "success",  "data": [    {      "id": 26,      "origin": "WSAX",      "symbol_name": "USDT",      "condition": "buy",      "tick_indication": "D",      "quantity": "77.0000000000000000",      "price": "44.0000000000000000",      "time": "11:15",      "date": "2023-11-01",      "uti": "110120231115-0000-A0026",      "company_profile": {        "id": 6,        "logo": "/media/company_profile_logo/logo.jpg",        "security_name": "USDT",        "company_name": "FIMR",        "business_description": "",        "street_address_1": "1",        "street_address_2": "",        "city": "",        "state": "",        "zip_code": "",        "country": "",        "phone": "",        "web_address": "",        "sic_industry_classification": "",        "incorporation_information": "",        "number_of_employees": null,        "company_officers_and_contacts": "",        "board_of_directors": "",        "product_and_services": "",        "company_facilities": "",        "transfer_agent": "",        "accounting_auditing_firm": "",        "investor_relations_marketing_communications": "",        "securities_counsel": "",        "us_reporting": "",        "edgar_cik": "",        "is_approved": true,        "status": "approved",        "created_at": "2023-10-04T14:22:24.248943Z",        "updated_at": "2023-11-03T18:25:33.539997Z",        "symbol": 1      },      "created_at": "2023-11-08T09:15:35.611337Z",      "updated_at": "2023-11-08T09:16:36.314884Z"    }  ],  "code": 200}