Bridge

<back to all web services

ETSOrderDetails

ETS
The following routes are available for this service:
GET/ETS/Order-Details
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ETSOrderDetails:
    id: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ETSOrderDetailsViewModel:
    id: int = 0
    order_guid: Optional[str] = None
    order_placed_by: Optional[str] = None
    order_placed_by_image_guid: Optional[str] = None
    order_placed_date_time: Optional[str] = None
    quantity: Optional[str] = None
    status: Optional[str] = None
    vessels: Optional[str] = None
    forward: bool = False
    order_type: Optional[str] = None
    eua_price: Optional[str] = None
    grey_epoch_broker_price: Optional[str] = None
    bridge_arrangement_fee: Optional[str] = None
    eua_total_paid: Optional[str] = None
    order_total: Optional[str] = None
    deposit: Optional[str] = None
    deposit_value: Optional[str] = None
    margin_covered_to: Optional[str] = None
    payment_requests: Optional[str] = None
    current_price: Optional[str] = None
    position: Optional[str] = None
    total_position: Optional[str] = None
    font_colour: Optional[str] = None
    third_party: bool = False
    third_party_name: Optional[str] = None
    financed: bool = False
    show_mark_to_market: bool = False

Python ETSOrderDetails DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /ETS/Order-Details HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Id":0,"OrderGuid":"00000000000000000000000000000000","OrderPlacedBy":"String","OrderPlacedByImageGuid":"00000000000000000000000000000000","OrderPlacedDateTime":"String","Quantity":"String","Status":"String","Vessels":"String","Forward":false,"OrderType":"String","EUAPrice":"String","GreyEpochBrokerPrice":"String","BridgeArrangementFee":"String","EUATotalPaid":"String","OrderTotal":"String","Deposit":"String","DepositValue":"String","MarginCoveredTo":"String","PaymentRequests":"String","CurrentPrice":"String","Position":"String","TotalPosition":"String","FontColour":"String","ThirdParty":false,"ThirdPartyName":"String","Financed":false,"ShowMarkToMarket":false}