Merge branch 'dev' into add_dockerfile
This commit is contained in:
commit
412960d6c5
3585
poetry.lock
generated
3585
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,13 +1,13 @@
|
||||
[tool.poetry]
|
||||
name = "markettrade"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
description = ""
|
||||
authors = ["Mark <strategy155@gmail.com>", "Sasha <redsandybn@yandex.ru>"]
|
||||
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = ">=3.9,<3.12"
|
||||
pandas = "^1.4.2"
|
||||
python = ">=3.9,<3.13"
|
||||
pandas = "^2.1.3"
|
||||
numpy = "^1.22.3"
|
||||
plotly = "^5.7.0"
|
||||
matplotlib = "^3.5.2"
|
||||
@ -18,10 +18,10 @@ nest-asyncio = "^1.5.5"
|
||||
beautifulsoup4 = "^4.11.1"
|
||||
requests = "^2.27.1"
|
||||
selenium = "^4.1.5"
|
||||
black = "^22.6.0"
|
||||
black = "^23.12.0"
|
||||
tinkoff-grpc = {git = "git@github.com:strategy155/tinkoff_grpc.git", branch="master"}
|
||||
python-dotenv = "^0.21.0"
|
||||
jupyterlab = "^3.5.1"
|
||||
python-dotenv = "^1.0.0"
|
||||
jupyterlab = "^4.0.9"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
|
||||
|
||||
14
tools/get_limits.py
Normal file
14
tools/get_limits.py
Normal file
@ -0,0 +1,14 @@
|
||||
import tinkoff_grpc
|
||||
import market_trade.constants
|
||||
import tinkoff_grpc.src.users
|
||||
|
||||
if __name__ == '__main__':
|
||||
api_address = market_trade.constants.TINKOFF_API_ADDRESS
|
||||
token = market_trade.constants.TINKOFF_BEARER_TOKEN
|
||||
authorization_field = market_trade.constants.TINKOFF_AUTHORIZATION_HEADER
|
||||
with tinkoff_grpc.Channel(api_address=api_address,
|
||||
token=token,
|
||||
authorization_field=authorization_field) as tinkoff_channel:
|
||||
user_service = tinkoff_grpc.src.users.UserService(tinkoff_channel)
|
||||
limits = user_service.get_tariff()
|
||||
print(limits)
|
||||
Loading…
x
Reference in New Issue
Block a user