Module macrobond_data_api.com.com_types.connection

Classes

class Connection

Interface for a Macrobond connection.

Instance variables

var DatabaseDatabase

This property returns a reference to the database interface.

var Version : Tuple[int, int, int]

Version Returns an array of three values for the version of the installed API. For example, for the version 1.23.3 it will return [1, 23, 3].

Methods

def Close(self) ‑> None

Free all resources used by the Macrobond API. Opening and closing sessions can be slow, so it is usually not a good idea to open and close them for each request

def LocalTimeToUtc(self, localTime: datetime.datetime) ‑> datetime.datetime

Convert local time to UTC.

def UtcToLocalTime(self, utcTime: datetime.datetime) ‑> datetime.datetime

Convert UTC to local time.