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 .xml suffix or ?format=xml

HTTP + XML

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/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ETSOrderDetailsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
  <BridgeArrangementFee>String</BridgeArrangementFee>
  <CurrentPrice>String</CurrentPrice>
  <Deposit>String</Deposit>
  <DepositValue>String</DepositValue>
  <EUAPrice>String</EUAPrice>
  <EUATotalPaid>String</EUATotalPaid>
  <Financed>false</Financed>
  <FontColour>String</FontColour>
  <Forward>false</Forward>
  <GreyEpochBrokerPrice>String</GreyEpochBrokerPrice>
  <Id>0</Id>
  <MarginCoveredTo>String</MarginCoveredTo>
  <OrderGuid>00000000-0000-0000-0000-000000000000</OrderGuid>
  <OrderPlacedBy>String</OrderPlacedBy>
  <OrderPlacedByImageGuid>00000000-0000-0000-0000-000000000000</OrderPlacedByImageGuid>
  <OrderPlacedDateTime>String</OrderPlacedDateTime>
  <OrderTotal>String</OrderTotal>
  <OrderType>String</OrderType>
  <PaymentRequests>String</PaymentRequests>
  <Position>String</Position>
  <Quantity>String</Quantity>
  <ShowMarkToMarket>false</ShowMarkToMarket>
  <Status>String</Status>
  <ThirdParty>false</ThirdParty>
  <ThirdPartyName>String</ThirdPartyName>
  <TotalPosition>String</TotalPosition>
  <Vessels>String</Vessels>
</ETSOrderDetailsViewModel>