Bridge

<back to all web services

ETSOrders

ETS
The following routes are available for this service:
GET/ETS/Orders

export class ETSOrders
{
    public DateFrom?: string;
    public DateTo?: string;
    public VesselId?: number;

    public constructor(init?: Partial<ETSOrders>) { (Object as any).assign(this, init); }
}

export class GetETSPriceDayChangeViewModel
{
    public Id: number;
    public Today: string;
    public PreviousClose: number;
    public ClosePrice: number;
    public PercentageChange: number;
    public EURChange: number;
    public LabelDescription: string;
    public ShowGetQuoteButton: boolean;
    public ShowPriceSection: boolean;
    public MinutesRemaining: number;
    public MarketCountdownLabel: string;
    public IsRegistered: string;

    public constructor(init?: Partial<GetETSPriceDayChangeViewModel>) { (Object as any).assign(this, init); }
}

export class GetETSRegistrationStatusViewModel
{
    public Status: string;
    public AppliedBy: string;

    public constructor(init?: Partial<GetETSRegistrationStatusViewModel>) { (Object as any).assign(this, init); }
}

export class GetETSOrderListNewIncludingForwardsViewModel
{
    public Id: number;
    public OrderGuid: string;
    public Company: string;
    public Status: string;
    public OrderByName: string;
    public OrderByImageGuid: string;
    public Quantity: number;
    public OrderPlacedDateTime: string;
    public OrderVesselCount: number;
    public UnitPrice: number;
    public TotalPrice: number;
    public IsForward: boolean;
    public ForwardMonth: string;
    public IsThirdParty: boolean;
    public ThirdPartyName: string;
    public CurrentValue: number;
    public EUAMarkToMarket: number;
    public MonthStartingDate?: string;
    public ShowMarkToMarket: boolean;

    public constructor(init?: Partial<GetETSOrderListNewIncludingForwardsViewModel>) { (Object as any).assign(this, init); }
}

export class ETSViewModel
{
    public CanPurchaseEUA: boolean;
    public GetETSPriceDayChange: GetETSPriceDayChangeViewModel;
    public GetETSRegistrationStatus: GetETSRegistrationStatusViewModel;
    public GetETSOrderListNewIncludingForwards: GetETSOrderListNewIncludingForwardsViewModel[];

    public constructor(init?: Partial<ETSViewModel>) { (Object as any).assign(this, init); }
}

TypeScript ETSOrders DTOs

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

HTTP + CSV

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

GET /ETS/Orders HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"CanPurchaseEUA":false,"GetETSPriceDayChange":{"Id":0,"Today":"0001-01-01T00:00:00.0000000","PreviousClose":0,"ClosePrice":0,"PercentageChange":0,"EURChange":0,"LabelDescription":"String","ShowGetQuoteButton":false,"ShowPriceSection":false,"MinutesRemaining":0,"MarketCountdownLabel":"String","IsRegistered":"String"},"GetETSRegistrationStatus":{"Status":"String","AppliedBy":"String"},"GetETSOrderListNewIncludingForwards":[{"Id":0,"OrderGuid":"00000000000000000000000000000000","Company":"String","Status":"String","OrderByName":"String","OrderByImageGuid":"00000000000000000000000000000000","Quantity":0,"OrderPlacedDateTime":"String","OrderVesselCount":0,"UnitPrice":0,"TotalPrice":0,"IsForward":false,"ForwardMonth":"String","IsThirdParty":false,"ThirdPartyName":"String","CurrentValue":0,"EUAMarkToMarket":0,"MonthStartingDate":"0001-01-01T00:00:00.0000000","ShowMarkToMarket":false}]}