-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExamples.py
More file actions
28 lines (27 loc) · 881 Bytes
/
Examples.py
File metadata and controls
28 lines (27 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import warnings
warnings.filterwarnings("ignore")
import requests
import traceback
import pandas as pd
import os
from dotenv import load_dotenv
from src import TradingOperations as TO
from src import AccountOperations as AO
load_dotenv()
username = os.getenv("NOBITEX_USERNAME")
password = os.getenv("NOBITEX_PASSWORD")
Trader = TO.TradingOperations(username=username,
password=password,
twoFactorAuthentication="617864",
remember="no")
print(Trader.authenticationToken)
id = Trader.placeLimitOrder("buy","usdt","rls",550000,100)
id = Trader.placeMarketExecutionOrder("buy","usdt","rls",10)
Trader.cancelOrder(id)
Trader.getOrderStatus(id)
btc_balance = Trader.getCurrencyBallance("btc")
print(btc_balance)
Trader.getOrdersList()
Trader.getActiveCurrencies()
Trader.getPercissions()
Trader.logout()