Skip to content

Instantly share code, notes, and snippets.

@lukedemi
Created September 6, 2017 03:34
Show Gist options
  • Save lukedemi/615ad914908cabbb935442f6e235edd8 to your computer and use it in GitHub Desktop.
Save lukedemi/615ad914908cabbb935442f6e235edd8 to your computer and use it in GitHub Desktop.
@task(7110)
def get_user(self):
self.client.get(
"/v2/user",
auth=self.auth
)
@task(5460)
def get_prices_historic(self):
pair = random.choice(CRYPTO_FIAT_PAIRS)
params = {'period': 'week'}
self.client.get(
"/v2/prices/" + pair + "/historic",
name="/v2/prices/[pair]/historic",
params=params,
auth=self.auth
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment