Skip to content

PlaceBulkLimitOrder via gRPC responds "ERROR: Code: Unknown Message: Exception was thrown by handler." #10

Description

@direktoren

Bug Description
I get an "Code: Unknown Message: Exception was thrown by handler" error when calling PlaceBulkLimitOrder either via grpcurl or my own code. Example:

order.json =

{
    "assetPairId": "KINETH",
    "cancelPreviousOrders": true,
    "orders": [
        {
            "side": 0,
            "volume": "100000",
            "price": "0.0000000050"
        }
    ]
}

Run the command:

cat order.json |grpcurl -rpc-header "authorization: Bearer APIKEY" -d @ hft-apiv2-grpc.lykke.com:443 hft.PrivateService.PlaceBulkLimitOrder

Where I replace APIKEY with my API Wallet apiKey that I can use without a problem for the other private apis using grpcurl.

Response:

ERROR:
  Code: Unknown
  Message: Exception was thrown by handler.

I get the same error message from my own code as displayed by grpcurl so I believe its the response comes from Lykke Trading-API not grpcurl itself. But I've been wrong before, so please advice.

I want also to show that I have reasons to believe I'm using grpcurl correctly. GetBalance api works fine like this:

grpcurl -rpc-header "Authorisation: Bearer APIKEY" hft-apiv2-grpc.lykke.com:443 hft.PrivateService.GetBalances

Screenshots
N/A

Browser (please complete the following information):

  • MacOS
  • grpcurl

Last upstream Slate commit (run git log --author="Robert Lord" | head -n 1):
Latest

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions