Stress test not working


#1

Hi Community! After the setup of the workbench i run the “make stress” command and i get the output that i paste below. The output ends with the following error message: {“error”:“currency does not have a valid value”}. I tried with a different market (usdbtc) but i get the same error. Any ideas of how to workaround this error?

Root URL: http://api.wb.local
Currencies: USD, EUR
Markets: EURUSD
Number of simultaneous traders: 10
Number of orders to create: 100
Number of simultaneous requests: 5
Minimum order volume: 1.0
Maximum order volume: 100.0
Order volume step: 1.0
Minimum order price: 0.5
Maximum order price: 1.5
Order price step: 0.1

Creating 10 traders… OK
Making each trader billionaire… error: – HTTP 422 Unprocessable Entity –

– Request URL –
http://api.wb.local/management_api/v1/deposits/new

– Request Method –
POST

– Request headers –
{“User-Agent”:“Faraday v0.15.1”,“Content-Type”:“application/json”}

– Request body –
{“payload”:“eyJpYXQiOjE1MzgzNDkwMDksImV4cCI6MTUzODM0OTMwOSwianRpIjoiZDM0YTAyODUtOTc4Ni00ZTViLWJlZWUtOTZmNDJlNTA3ZDdiIiwiaXNzIjoidG9vbGJveCIsImRhdGEiOnsidWlkIjoiVUlENDczRDVGRkFFMyIsImN1cnJlbmN5IjoiZXVyIiwiYW1vdW50IjoxMDAwMDAwMDAwLCJzdGF0ZSI6ImFjY2VwdGVkIn19”,“signatures”:[{“protected”:“eyJhbGciOiJSUzI1NiJ9”,“header”:{“kid”:“toolbox”},“signature”:“oi5yaCgrbt4Ag-AQYjJyXocWk5eEH3Oi6WJwmE7QQgk5rUt8Dj9jz1ISF3BdqVmMKXKu_rAIQiGAPk5_E_ruTOQwY3ZBxHYt1ZFSRzvSSHMPCklJVZ6v7jZk5Da2W385t_S-y5tjEAuz4MGnNSj8cHnq1VcEMl3frF6nBFbeUlcjt8ooaygKOin46ZOWaLDLs9PUr00kScLH7IjQeh8G_9GBWyoccjkxrEJPStNJ39oLW5rHqBXV0rvE5EgFbtC5TsfJ8j7_rYz69zlqL7T6vbQNebkE41yokqlyUI74_4BLhE1pEyqN70AqgObFaZjpToqOgYveZifavu8FFncDAw”}]}

– Response headers –
{“cache-control”:“no-cache”,“content-length”:“48”,“content-type”:“application/json”,“x-request-id”:“9c5d9d9b-00d6-4d18-b47d-0de25072a351”,“x-runtime”:“0.008411”,“date”:“Sun, 30 Sep 2018 23:10:09 GMT”,“connection”:“close”}

– Response body –
{“error”:“currency does not have a valid value”}


#2

Hi.

Did you seed your database?

It seems like toolbox was not able to get currency — EUR or USD, please check that you have such currencies in admin panel, you can add it if there is no.


#3

Hi Egor. Thanks for your reply.

I changed the currencies and market to usdbtc which does exist and i get the same error.

Root URL: http://api.wb.local
Currencies: USD, BTC
Markets: USDBTC
Number of simultaneous traders: 10
Number of orders to create: 100
Number of simultaneous requests: 5
Minimum order volume: 1.0
Maximum order volume: 100.0
Order volume step: 1.0
Minimum order price: 0.5
Maximum order price: 1.5
Order price step: 0.1

Creating 10 traders… OK
Making each trader billionaire… error: – HTTP 422 Unprocessable Entity –

– Request URL –
http://api.wb.local/management_api/v1/deposits/new

– Request Method –
POST

– Request headers –
{“User-Agent”:“Faraday v0.15.1”,“Content-Type”:“application/json”}

– Request body –
{“payload”:“eyJpYXQiOjE1Mzg0MDU5ODMsImV4cCI6MTUzODQwNjI4MywianRpIjoiOGE0M2UxNTEtYTkwYS00YzE4LWExOGMtYjMxODUzZWFkN2UxIiwiaXNzIjoidG9vbGJveCIsImRhdGEiOnsidWlkIjoiVUlEMDhBMzRCREM2NSIsImN1cnJlbmN5IjoiYnRjIiwiYW1vdW50IjoxMDAwMDAwMDAwLCJzdGF0ZSI6ImFjY2VwdGVkIn19”,“signatures”:[{“protected”:“eyJhbGciOiJSUzI1NiJ9”,“header”:{“kid”:“toolbox”},“signature”:“Qgb2U_8dLHtlVha0qauS5Cec36WKgx3jLjs-U9kgqMBn9q13fZoTAUZ8CgQhjqUAc-8JjDdemZS3VbcpQ8k9mtURDmT8PNPgZg4z7PHG4Jv2IXlDS8XkEMLBxh-hd38iqXXlZtlxanf-h4pqF__wYJOy-sG3Qv8IVLH_SvFw9k_2mfCZNa2s1THx9ea5sV0Ehs8VzRbjKmXaGVK8Ak8MiY-7qxDJ3X4HmNk9rWlA43pzpkc6bz7XGdi4SCyYyIJWjONN6KCEpuA8X1JL1ir1i5_UuIdb6MfxM2pOgPp01RNeltoJfq9iZeS0kDaWvwmnILUDp7rCEm-DRbEuIsORwA”}]}

– Response headers –
{“cache-control”:“no-cache”,“content-length”:“48”,“content-type”:“application/json”,“x-request-id”:“13aeb758-4e35-45c9-9b5f-44ec2127986b”,“x-runtime”:“0.010748”,“date”:“Mon, 01 Oct 2018 14:59:43 GMT”,“connection”:“close”}

– Response body –
{“error”:“currency does not have a valid value”}


#4

Well, @egor was right. The EUR currency was missing on my installation. What confused me was that when i changed the currencies from USD and EUR to BTC and USD the error was the same, but in this case the problem was not that the currency did not exist but that the deposits endpoint only allows fiat currencies (so it was complaining about the BTC).


#5