Skip to content

electricity_trading_pb2_grpc

frequenz.api.electricity_trading.v1.electricity_trading_pb2_grpc ¤

Client and server classes corresponding to protobuf-defined services.

Classes¤

frequenz.api.electricity_trading.v1.electricity_trading_pb2_grpc.ElectricityTradingService ¤

Bases: object

Service providing operations related to order management.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
class ElectricityTradingService(object):
    """Service providing operations related to order management.
    """

    @staticmethod
    def CreateGridpoolOrder(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/CreateGridpoolOrder',
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CreateGridpoolOrderRequest.SerializeToString,
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CreateGridpoolOrderResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def UpdateGridpoolOrder(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/UpdateGridpoolOrder',
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.UpdateGridpoolOrderRequest.SerializeToString,
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.UpdateGridpoolOrderResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def CancelGridpoolOrder(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/CancelGridpoolOrder',
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CancelGridpoolOrderRequest.SerializeToString,
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CancelGridpoolOrderResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def CancelAllGridpoolOrders(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/CancelAllGridpoolOrders',
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CancelAllGridpoolOrdersRequest.SerializeToString,
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CancelAllGridpoolOrdersResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def GetGridpoolOrder(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/GetGridpoolOrder',
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.GetGridpoolOrderRequest.SerializeToString,
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.GetGridpoolOrderResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ListGridpoolOrders(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ListGridpoolOrders',
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListGridpoolOrdersRequest.SerializeToString,
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListGridpoolOrdersResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ReceiveGridpoolOrdersStream(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_stream(
            request,
            target,
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ReceiveGridpoolOrdersStream',
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceiveGridpoolOrdersStreamRequest.SerializeToString,
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceiveGridpoolOrdersStreamResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ListGridpoolTrades(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ListGridpoolTrades',
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListGridpoolTradesRequest.SerializeToString,
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListGridpoolTradesResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ReceiveGridpoolTradesStream(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_stream(
            request,
            target,
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ReceiveGridpoolTradesStream',
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceiveGridpoolTradesStreamRequest.SerializeToString,
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceiveGridpoolTradesStreamResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ListPublicTrades(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ListPublicTrades',
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListPublicTradesRequest.SerializeToString,
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListPublicTradesResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ReceivePublicTradesStream(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_stream(
            request,
            target,
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ReceivePublicTradesStream',
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceivePublicTradesStreamRequest.SerializeToString,
            frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceivePublicTradesStreamResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

frequenz.api.electricity_trading.v1.electricity_trading_pb2_grpc.ElectricityTradingServiceAsyncStub ¤

Service providing operations related to order management.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
def CreateGridpoolOrder(self, request, context):
    """Creates a new order for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

def UpdateGridpoolOrder(self, request, context):
    """Updates an existing order for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

def CancelGridpoolOrder(self, request, context):
    """Cancels an existing order for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

def CancelAllGridpoolOrders(self, request, context):
    """Cancels all open orders for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

def GetGridpoolOrder(self, request, context):
    """Fetches the details of a specific order for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

def ListGridpoolOrders(self, request, context):
    """Lists all the orders for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

def ReceiveGridpoolOrdersStream(self, request, context):
    """Stream order updates for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

def ListGridpoolTrades(self, request, context):
    """Lists all trades for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

def ReceiveGridpoolTradesStream(self, request, context):
    """Stream trades for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

def ListPublicTrades(self, request, context):
    """Lists all historic public trades.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
Attributes¤
CancelAllGridpoolOrders instance-attribute ¤

Cancels all open orders for a given Gridpool.

CancelGridpoolOrder instance-attribute ¤

Cancels an existing order for a given Gridpool.

CreateGridpoolOrder instance-attribute ¤

Creates a new order for a given Gridpool.

GetGridpoolOrder instance-attribute ¤

Fetches the details of a specific order for a given Gridpool.

ListGridpoolOrders instance-attribute ¤

Lists all the orders for a given Gridpool.

ListGridpoolTrades instance-attribute ¤

Lists all trades for a given Gridpool.

ListPublicTrades instance-attribute ¤

Lists all historic public trades.

ReceiveGridpoolOrdersStream instance-attribute ¤

Stream order updates for a given Gridpool.

ReceiveGridpoolTradesStream instance-attribute ¤

Stream trades for a given Gridpool.

ReceivePublicTradesStream instance-attribute ¤

Stream all historic public trades.

UpdateGridpoolOrder instance-attribute ¤

Updates an existing order for a given Gridpool.

frequenz.api.electricity_trading.v1.electricity_trading_pb2_grpc.ElectricityTradingServiceServicer ¤

Bases: object

Service providing operations related to order management.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
class ElectricityTradingServiceServicer(object):
    """Service providing operations related to order management.
    """

    def CreateGridpoolOrder(self, request, context):
        """Creates a new order for a given Gridpool.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def UpdateGridpoolOrder(self, request, context):
        """Updates an existing order for a given Gridpool.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def CancelGridpoolOrder(self, request, context):
        """Cancels an existing order for a given Gridpool.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def CancelAllGridpoolOrders(self, request, context):
        """Cancels all open orders for a given Gridpool.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def GetGridpoolOrder(self, request, context):
        """Fetches the details of a specific order for a given Gridpool.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ListGridpoolOrders(self, request, context):
        """Lists all the orders for a given Gridpool.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ReceiveGridpoolOrdersStream(self, request, context):
        """Stream order updates for a given Gridpool.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ListGridpoolTrades(self, request, context):
        """Lists all trades for a given Gridpool.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ReceiveGridpoolTradesStream(self, request, context):
        """Stream trades for a given Gridpool.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ListPublicTrades(self, request, context):
        """Lists all historic public trades.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ReceivePublicTradesStream(self, request, context):
        """Stream all historic public trades.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')
Functions¤
CancelAllGridpoolOrders ¤
CancelAllGridpoolOrders(
    request: CancelAllGridpoolOrdersRequest,
    context: _ServicerContext,
) -> Union[
    CancelAllGridpoolOrdersResponse,
    Awaitable[CancelAllGridpoolOrdersResponse],
]

Cancels all open orders for a given Gridpool.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
def CancelAllGridpoolOrders(self, request, context):
    """Cancels all open orders for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
CancelGridpoolOrder ¤
CancelGridpoolOrder(
    request: CancelGridpoolOrderRequest,
    context: _ServicerContext,
) -> Union[
    CancelGridpoolOrderResponse,
    Awaitable[CancelGridpoolOrderResponse],
]

Cancels an existing order for a given Gridpool.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
def CancelGridpoolOrder(self, request, context):
    """Cancels an existing order for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
CreateGridpoolOrder ¤
CreateGridpoolOrder(
    request: CreateGridpoolOrderRequest,
    context: _ServicerContext,
) -> Union[
    CreateGridpoolOrderResponse,
    Awaitable[CreateGridpoolOrderResponse],
]

Creates a new order for a given Gridpool.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
def CreateGridpoolOrder(self, request, context):
    """Creates a new order for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
GetGridpoolOrder ¤
GetGridpoolOrder(
    request: GetGridpoolOrderRequest,
    context: _ServicerContext,
) -> Union[
    GetGridpoolOrderResponse,
    Awaitable[GetGridpoolOrderResponse],
]

Fetches the details of a specific order for a given Gridpool.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
def GetGridpoolOrder(self, request, context):
    """Fetches the details of a specific order for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
ListGridpoolOrders ¤
ListGridpoolOrders(
    request: ListGridpoolOrdersRequest,
    context: _ServicerContext,
) -> Union[
    ListGridpoolOrdersResponse,
    Awaitable[ListGridpoolOrdersResponse],
]

Lists all the orders for a given Gridpool.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
def ListGridpoolOrders(self, request, context):
    """Lists all the orders for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
ListGridpoolTrades ¤
ListGridpoolTrades(
    request: ListGridpoolTradesRequest,
    context: _ServicerContext,
) -> Union[
    ListGridpoolTradesResponse,
    Awaitable[ListGridpoolTradesResponse],
]

Lists all trades for a given Gridpool.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
def ListGridpoolTrades(self, request, context):
    """Lists all trades for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
ListPublicTrades ¤
ListPublicTrades(
    request: ListPublicTradesRequest,
    context: _ServicerContext,
) -> Union[
    ListPublicTradesResponse,
    Awaitable[ListPublicTradesResponse],
]

Lists all historic public trades.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
def ListPublicTrades(self, request, context):
    """Lists all historic public trades.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
ReceiveGridpoolOrdersStream ¤

Stream order updates for a given Gridpool.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
def ReceiveGridpoolOrdersStream(self, request, context):
    """Stream order updates for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
ReceiveGridpoolTradesStream ¤

Stream trades for a given Gridpool.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
def ReceiveGridpoolTradesStream(self, request, context):
    """Stream trades for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
ReceivePublicTradesStream ¤

Stream all historic public trades.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
def ReceivePublicTradesStream(self, request, context):
    """Stream all historic public trades.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')
UpdateGridpoolOrder ¤
UpdateGridpoolOrder(
    request: UpdateGridpoolOrderRequest,
    context: _ServicerContext,
) -> Union[
    UpdateGridpoolOrderResponse,
    Awaitable[UpdateGridpoolOrderResponse],
]

Updates an existing order for a given Gridpool.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
def UpdateGridpoolOrder(self, request, context):
    """Updates an existing order for a given Gridpool.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

frequenz.api.electricity_trading.v1.electricity_trading_pb2_grpc.ElectricityTradingServiceStub ¤

Bases: object

Service providing operations related to order management.

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
class ElectricityTradingServiceStub(object):
    """Service providing operations related to order management.
    """

    def __init__(self, channel):
        """Constructor.

        Args:
            channel: A grpc.Channel.
        """
        self.CreateGridpoolOrder = channel.unary_unary(
                '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/CreateGridpoolOrder',
                request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CreateGridpoolOrderRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CreateGridpoolOrderResponse.FromString,
                _registered_method=True)
        self.UpdateGridpoolOrder = channel.unary_unary(
                '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/UpdateGridpoolOrder',
                request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.UpdateGridpoolOrderRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.UpdateGridpoolOrderResponse.FromString,
                _registered_method=True)
        self.CancelGridpoolOrder = channel.unary_unary(
                '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/CancelGridpoolOrder',
                request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CancelGridpoolOrderRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CancelGridpoolOrderResponse.FromString,
                _registered_method=True)
        self.CancelAllGridpoolOrders = channel.unary_unary(
                '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/CancelAllGridpoolOrders',
                request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CancelAllGridpoolOrdersRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CancelAllGridpoolOrdersResponse.FromString,
                _registered_method=True)
        self.GetGridpoolOrder = channel.unary_unary(
                '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/GetGridpoolOrder',
                request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.GetGridpoolOrderRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.GetGridpoolOrderResponse.FromString,
                _registered_method=True)
        self.ListGridpoolOrders = channel.unary_unary(
                '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ListGridpoolOrders',
                request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListGridpoolOrdersRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListGridpoolOrdersResponse.FromString,
                _registered_method=True)
        self.ReceiveGridpoolOrdersStream = channel.unary_stream(
                '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ReceiveGridpoolOrdersStream',
                request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceiveGridpoolOrdersStreamRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceiveGridpoolOrdersStreamResponse.FromString,
                _registered_method=True)
        self.ListGridpoolTrades = channel.unary_unary(
                '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ListGridpoolTrades',
                request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListGridpoolTradesRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListGridpoolTradesResponse.FromString,
                _registered_method=True)
        self.ReceiveGridpoolTradesStream = channel.unary_stream(
                '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ReceiveGridpoolTradesStream',
                request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceiveGridpoolTradesStreamRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceiveGridpoolTradesStreamResponse.FromString,
                _registered_method=True)
        self.ListPublicTrades = channel.unary_unary(
                '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ListPublicTrades',
                request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListPublicTradesRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListPublicTradesResponse.FromString,
                _registered_method=True)
        self.ReceivePublicTradesStream = channel.unary_stream(
                '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ReceivePublicTradesStream',
                request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceivePublicTradesStreamRequest.SerializeToString,
                response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceivePublicTradesStreamResponse.FromString,
                _registered_method=True)
Attributes¤
CancelAllGridpoolOrders instance-attribute ¤
CancelAllGridpoolOrders: UnaryUnaryMultiCallable[
    CancelAllGridpoolOrdersRequest,
    CancelAllGridpoolOrdersResponse,
] = unary_unary(
    "/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/CancelAllGridpoolOrders",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Cancels all open orders for a given Gridpool.

CancelGridpoolOrder instance-attribute ¤
CancelGridpoolOrder: UnaryUnaryMultiCallable[
    CancelGridpoolOrderRequest, CancelGridpoolOrderResponse
] = unary_unary(
    "/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/CancelGridpoolOrder",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Cancels an existing order for a given Gridpool.

CreateGridpoolOrder instance-attribute ¤
CreateGridpoolOrder: UnaryUnaryMultiCallable[
    CreateGridpoolOrderRequest, CreateGridpoolOrderResponse
] = unary_unary(
    "/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/CreateGridpoolOrder",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Creates a new order for a given Gridpool.

GetGridpoolOrder instance-attribute ¤
GetGridpoolOrder: UnaryUnaryMultiCallable[
    GetGridpoolOrderRequest, GetGridpoolOrderResponse
] = unary_unary(
    "/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/GetGridpoolOrder",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Fetches the details of a specific order for a given Gridpool.

ListGridpoolOrders instance-attribute ¤
ListGridpoolOrders: UnaryUnaryMultiCallable[
    ListGridpoolOrdersRequest, ListGridpoolOrdersResponse
] = unary_unary(
    "/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ListGridpoolOrders",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Lists all the orders for a given Gridpool.

ListGridpoolTrades instance-attribute ¤
ListGridpoolTrades: UnaryUnaryMultiCallable[
    ListGridpoolTradesRequest, ListGridpoolTradesResponse
] = unary_unary(
    "/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ListGridpoolTrades",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Lists all trades for a given Gridpool.

ListPublicTrades instance-attribute ¤
ListPublicTrades: UnaryUnaryMultiCallable[
    ListPublicTradesRequest, ListPublicTradesResponse
] = unary_unary(
    "/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ListPublicTrades",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Lists all historic public trades.

ReceiveGridpoolOrdersStream instance-attribute ¤
ReceiveGridpoolOrdersStream: UnaryStreamMultiCallable[
    ReceiveGridpoolOrdersStreamRequest,
    ReceiveGridpoolOrdersStreamResponse,
] = unary_stream(
    "/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ReceiveGridpoolOrdersStream",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Stream order updates for a given Gridpool.

ReceiveGridpoolTradesStream instance-attribute ¤
ReceiveGridpoolTradesStream: UnaryStreamMultiCallable[
    ReceiveGridpoolTradesStreamRequest,
    ReceiveGridpoolTradesStreamResponse,
] = unary_stream(
    "/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ReceiveGridpoolTradesStream",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Stream trades for a given Gridpool.

ReceivePublicTradesStream instance-attribute ¤
ReceivePublicTradesStream: UnaryStreamMultiCallable[
    ReceivePublicTradesStreamRequest,
    ReceivePublicTradesStreamResponse,
] = unary_stream(
    "/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ReceivePublicTradesStream",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Stream all historic public trades.

UpdateGridpoolOrder instance-attribute ¤
UpdateGridpoolOrder: UnaryUnaryMultiCallable[
    UpdateGridpoolOrderRequest, UpdateGridpoolOrderResponse
] = unary_unary(
    "/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/UpdateGridpoolOrder",
    request_serializer=SerializeToString,
    response_deserializer=FromString,
    _registered_method=True,
)

Updates an existing order for a given Gridpool.

Functions¤
__init__ ¤
__init__(channel: Union[Channel, Channel]) -> None

Constructor.

PARAMETER DESCRIPTION
channel

A grpc.Channel.

TYPE: Union[Channel, Channel]

Source code in frequenz/api/electricity_trading/v1/electricity_trading_pb2_grpc.py
def __init__(self, channel):
    """Constructor.

    Args:
        channel: A grpc.Channel.
    """
    self.CreateGridpoolOrder = channel.unary_unary(
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/CreateGridpoolOrder',
            request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CreateGridpoolOrderRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CreateGridpoolOrderResponse.FromString,
            _registered_method=True)
    self.UpdateGridpoolOrder = channel.unary_unary(
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/UpdateGridpoolOrder',
            request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.UpdateGridpoolOrderRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.UpdateGridpoolOrderResponse.FromString,
            _registered_method=True)
    self.CancelGridpoolOrder = channel.unary_unary(
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/CancelGridpoolOrder',
            request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CancelGridpoolOrderRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CancelGridpoolOrderResponse.FromString,
            _registered_method=True)
    self.CancelAllGridpoolOrders = channel.unary_unary(
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/CancelAllGridpoolOrders',
            request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CancelAllGridpoolOrdersRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.CancelAllGridpoolOrdersResponse.FromString,
            _registered_method=True)
    self.GetGridpoolOrder = channel.unary_unary(
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/GetGridpoolOrder',
            request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.GetGridpoolOrderRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.GetGridpoolOrderResponse.FromString,
            _registered_method=True)
    self.ListGridpoolOrders = channel.unary_unary(
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ListGridpoolOrders',
            request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListGridpoolOrdersRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListGridpoolOrdersResponse.FromString,
            _registered_method=True)
    self.ReceiveGridpoolOrdersStream = channel.unary_stream(
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ReceiveGridpoolOrdersStream',
            request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceiveGridpoolOrdersStreamRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceiveGridpoolOrdersStreamResponse.FromString,
            _registered_method=True)
    self.ListGridpoolTrades = channel.unary_unary(
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ListGridpoolTrades',
            request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListGridpoolTradesRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListGridpoolTradesResponse.FromString,
            _registered_method=True)
    self.ReceiveGridpoolTradesStream = channel.unary_stream(
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ReceiveGridpoolTradesStream',
            request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceiveGridpoolTradesStreamRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceiveGridpoolTradesStreamResponse.FromString,
            _registered_method=True)
    self.ListPublicTrades = channel.unary_unary(
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ListPublicTrades',
            request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListPublicTradesRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ListPublicTradesResponse.FromString,
            _registered_method=True)
    self.ReceivePublicTradesStream = channel.unary_stream(
            '/frequenz.api.electricity_trading.electricity_trading.v1.ElectricityTradingService/ReceivePublicTradesStream',
            request_serializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceivePublicTradesStreamRequest.SerializeToString,
            response_deserializer=frequenz_dot_api_dot_electricity__trading_dot_v1_dot_electricity__trading__pb2.ReceivePublicTradesStreamResponse.FromString,
            _registered_method=True)