koapy.backend.kiwoom_open_api_plus.grpc.KiwoomOpenApiPlusService_pb2_grpc¶
Client and server classes corresponding to protobuf-defined services.
Module Contents¶
Classes¶
Missing associated documentation comment in .proto file. |
|
Missing associated documentation comment in .proto file. |
|
Missing associated documentation comment in .proto file. |
Functions¶
- class koapy.backend.kiwoom_open_api_plus.grpc.KiwoomOpenApiPlusService_pb2_grpc.KiwoomOpenApiPlusServiceStub(channel)[source]¶
Missing associated documentation comment in .proto file.
- class koapy.backend.kiwoom_open_api_plus.grpc.KiwoomOpenApiPlusService_pb2_grpc.KiwoomOpenApiPlusServiceServicer[source]¶
Missing associated documentation comment in .proto file.
- Call(request, context)[source]¶
rpcs for general function calls
unary rpc for an arbitrary function call, can invoke arbitrary function on the server side by giving its name and arguments, currently only simple data types like str and int are supported for arguments and return values
- Listen(request, context)[source]¶
rpcs for listening and handling events
server streaming rpc usually for listening events, server will simply send stream items to client whenever event that is being listened is triggered, client can handle those events solely on its own on client side but there is no guarantee that it will be synced with the server, which means that event handler on the server side will not wait for the client to finish handling each event
- BidirectionalListen(request_iterator, context)[source]¶
bidirectional streaming rpc usually for listening and handling events with proper callbacks, server will send an stream item to client whenever an event is triggered and will wait for an client’s ack, so that following callbacks from the client can actually be processed inside the server’s event handler context
- LoginCall(request, context)[source]¶
rpcs for simple use cases that can be categorized into serveral distinct usage patterns
server streaming rpc for login/connect scenario, would invoke CommConnect() and wait for OnEventConnect() event to test its success
- TransactionCall(request, context)[source]¶
server streaming rpc for general transaction requests, would invoke CommRqData() with several SetInputValue()s for a transaction request, would wait for OnReceiveTrData() events, would handle those events to gather results by invoking GetRepeatCnt() and GetCommData() inside, might do additional CommRqData() and SetInputValue() inside event handler for possible consecutive lookups
- OrderCall(request, context)[source]¶
server streaming rpc for making orders (buy/sell + update/cancel), would invoke SendOrder() for submitting an order, would wait for OnReceiveTrData() and OnReceiveChejanData() events to track its progress
- RealCall(request, context)[source]¶
server streaming rpc for listening realtime data events, certain transaction requests would also register some realtime data to be sent, but usually would just call SetRealReg() to register desired realtime data to listen explicitly, and would call SetRealRemove() to unregister them after done using, would wait for OnReceiveRealData() events
- LoadConditionCall(request, context)[source]¶
server streaming rpc for loading condition settings for conditioned search, would call GetConditionLoad() and wait for OnReceiveConditionVer() event to test its success
- ConditionCall(request, context)[source]¶
server streaming rpc for conditioned search (serching stocks with serveral conditions), would call SendCondition() and wait for OnReceiveTrCondition() or OnReceiveRealCondition() based on its requested type
- BidirectionalRealCall(request_iterator, context)[source]¶
rpcs for more complex use cases based on the previously categorized simple cases above
bidirectional streaming rpc for listening realtime data events, with capability of managing observation pool (what stocks, what fields to listen to) online, those management requests would be sent over the client streaming line, and ordinary realtime data events would be sent over the server streaming line
- OrderListen(request, context)[source]¶
server streaming rpc for just listening order events (without submiting any order request compared to the simple case), this is one-sided streaming rpc (server streaming rpc) like Listen() rpc, so server would just send stream items with no consideration on coordination with its client
- CustomListen(request, context)[source]¶
rpcs for customized usage scenario (when there is no proper predefined interface to utilize)
pretty much similar to server streaming Listen() rpc, but event handler would be instantiated dynamically based on the code given through the request
- koapy.backend.kiwoom_open_api_plus.grpc.KiwoomOpenApiPlusService_pb2_grpc.add_KiwoomOpenApiPlusServiceServicer_to_server(servicer, server)[source]¶
- class koapy.backend.kiwoom_open_api_plus.grpc.KiwoomOpenApiPlusService_pb2_grpc.KiwoomOpenApiPlusService[source]¶
Missing associated documentation comment in .proto file.
- static Call(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]¶
- static Listen(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]¶
- static BidirectionalListen(request_iterator, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]¶
- static LoginCall(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]¶
- static TransactionCall(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]¶
- static OrderCall(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]¶
- static RealCall(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]¶
- static LoadConditionCall(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]¶
- static ConditionCall(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]¶
- static BidirectionalRealCall(request_iterator, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]¶
- static OrderListen(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]¶
- static CustomListen(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None)[source]¶