Module macrobond_data_api.com.com_client

Classes

class ComClient

ComClient to get data via the Macrobond desktop API

Returns

ComClient
The ComClient instance

Examples

with ComClient() as api:
    # use the api here

Ancestors

  • Client
  • abc.ABC
  • typing.Generic

Instance variables

var is_open : bool

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 open(self) ‑> ComApi
def open_and_hint(self, hints: List[str]) ‑> ComApi
class ComClientVersionException (*args, **kwargs)

Common base class for all non-exit exceptions.

Ancestors

  • builtins.Exception
  • builtins.BaseException