Bridge

<back to all web services

ETSOrders

ETS
The following routes are available for this service:
GET/ETS/Orders
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Bridge.Private.Api.DTO
Imports Bridge.Core.ViewModels

Namespace Global

    Namespace Bridge.Core.ViewModels

        Public Partial Class ETSViewModel
            Public Sub New()
                GetETSOrderListNewIncludingForwards = New List(Of GetETSOrderListNewIncludingForwardsViewModel)
            End Sub

            Public Overridable Property CanPurchaseEUA As Boolean
            Public Overridable Property GetETSPriceDayChange As GetETSPriceDayChangeViewModel
            Public Overridable Property GetETSRegistrationStatus As GetETSRegistrationStatusViewModel
            Public Overridable Property GetETSOrderListNewIncludingForwards As List(Of GetETSOrderListNewIncludingForwardsViewModel)
        End Class

        Public Partial Class GetETSOrderListNewIncludingForwardsViewModel
            Public Overridable Property Id As Integer
            Public Overridable Property OrderGuid As Guid
            Public Overridable Property Company As String
            Public Overridable Property Status As String
            Public Overridable Property OrderByName As String
            Public Overridable Property OrderByImageGuid As Guid
            Public Overridable Property Quantity As Integer
            Public Overridable Property OrderPlacedDateTime As String
            Public Overridable Property OrderVesselCount As Integer
            Public Overridable Property UnitPrice As Double
            Public Overridable Property TotalPrice As Double
            Public Overridable Property IsForward As Boolean
            Public Overridable Property ForwardMonth As String
            Public Overridable Property IsThirdParty As Boolean
            Public Overridable Property ThirdPartyName As String
            Public Overridable Property CurrentValue As Double
            Public Overridable Property EUAMarkToMarket As Double
            Public Overridable Property MonthStartingDate As Nullable(Of Date)
            Public Overridable Property ShowMarkToMarket As Boolean
        End Class

        Public Partial Class GetETSPriceDayChangeViewModel
            Public Overridable Property Id As Integer
            Public Overridable Property Today As Date
            Public Overridable Property PreviousClose As Double
            Public Overridable Property ClosePrice As Double
            Public Overridable Property PercentageChange As Double
            Public Overridable Property EURChange As Double
            Public Overridable Property LabelDescription As String
            Public Overridable Property ShowGetQuoteButton As Boolean
            Public Overridable Property ShowPriceSection As Boolean
            Public Overridable Property MinutesRemaining As Integer
            Public Overridable Property MarketCountdownLabel As String
            Public Overridable Property IsRegistered As String
        End Class

        Public Partial Class GetETSRegistrationStatusViewModel
            Public Overridable Property Status As String
            Public Overridable Property AppliedBy As String
        End Class
    End Namespace

    Namespace Bridge.Private.Api.DTO

        Public Partial Class ETSOrders
            Public Overridable Property DateFrom As Nullable(Of Date)
            Public Overridable Property DateTo As Nullable(Of Date)
            Public Overridable Property VesselId As Nullable(Of Integer)
        End Class
    End Namespace
End Namespace

VB.NET 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}]}