-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathfacade.py
More file actions
88 lines (69 loc) · 1.55 KB
/
facade.py
File metadata and controls
88 lines (69 loc) · 1.55 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
from datetime import datetime as dt
import math
from .api import *
from logging import getLogger
log = getLogger(__name__)
class ApiFacade(object):
"""
Facade provides common operations for trading platform.
"""
def account_update(self, account):
"""
Update trading account on the server.
"""
def account_group(self, account):
"""
Determine trading account group.
"""
def account_change_password(self, account, password):
"""
Change trading account password.
"""
def account_change_leverage(self, account, leverage):
"""
Change trading account leverage.
"""
def account_block(self, account):
"""
Block a trading account.
"""
def account_unblock(self, account):
"""
Unblock a trading account.
"""
def account_agents(self, account):
pass
def account_leverage(self, account):
"""
Get trading account leverage.
"""
def account_balance(self, account):
"""
Get trading account balance.
"""
def account_equity(self, account):
"""
Get trading account equity.
"""
def account_available_leverages(self, account):
"""
Get trading account available leverages.
"""
def account_trades(self, account, **kwargs):
"""
Get trading account trades.
"""
def account_deferred_trades(self, account):
pass
def account_create(self, account):
"""
Create a trading account on the server.
"""
def account_deposit(self, account, amount, **kwargs):
"""
Deposit money on a trading acc.
"""
def account_withdraw(self, account, amount, **kwargs):
"""
Withdraw money from a trading acc.
"""