8000 Merge pull request #54 from balanced/fix-scenario · balanced/balanced-python@bade8fe · GitHub
[go: up one dir, main page]

Skip to content

Commit bade8fe

Browse files
committed
Merge pull request #54 from balanced/fix-scenario
Added account create hold stuff.
2 parents 4827402 + b466c0e commit bade8fe

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import balanced
2+
3+
balanced.configure("46c08048cd8811e2acae026ba7c1aba6")
4+
5+
account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC1SUaFl5mNtKGOA3LeO2IxN')
6+
account.hold(100)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
balanced.Account.debit()
1+
balanced.Account.hold()
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
% if mode == 'definition':
2-
3-
balanced.Account.debit()
2+
balanced.Account.hold()
43
% else:
4+
import balanced
55

6+
balanced.configure("46c08048cd8811e2acae026ba7c1aba6")
67

7-
% endif
8+
account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC1SUaFl5mNtKGOA3LeO2IxN')
9+
account.hold(100)
10+
% endif
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import balanced
2+
3+
balanced.configure("46c08048cd8811e2acae026ba7c1aba6")
4+
5+
account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC1SUaFl5mNtKGOA3LeO2IxN')
6+
account.hold(100)

0 commit comments

Comments
 (0)
0