File size: 2,660 Bytes
0425a43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
89
90
91
92
93
# The Proxy Quotes (pxyq) library
includes a fuction for calling the cell value with respect to a column and row of the csv dataset table. It calls for proxy `stoploss distance, lotsize, and margins with leverages covering a betsize of 1 cash, commissions, swaps, spread,` and more. It only have one simple function call, and that is `pxyq.column('ASSET')`.

- step 1: make sure you have `pxyq.py` in your directory. No need pip installations.
- step 2: make an `import pxyq` is written on top of your code.
- step 3: try calling the cell value by using the fuction call `pxyq.column('ASSET')`.

The CSV file contents are in `dataset.csv`, and the only main python library is `pxyq.py`.

---
# Sample dummy.py
##Function call exampple format: `pxyq.column('ASSET')`
```python

import pxyq



# Examples

stoploss_distance = pxyq.proxy_stoploss_distance_covering_1_cash('NZDJPYc')

print(stoploss_distance)  # 0.041



dec_of_AUDJPYc = pxyq.true_decimal_digits('AUDJPYc')

print(dec_of_AUDJPYc)     # 3



margin_100 = pxyq.proxy_margin_with_leverage_1000_covering_1_cash('EURUSDc')

print(margin_100)         # 22.86

```

---
# All ASSET for function call `pxyq.column('ASSET')`
```txt

AUDCADc

AUDCHFc

AUDJPYc

AUDNZDc

AUDUSDc

CADJPYc

CHFJPYc

EURAUDc

EURCADc

EURCHFc

EURGBPc

EURJPYc

EURNZDc

EURUSDc

GBPAUDc

GBPCADc

GBPCHFc

GBPJPYc

GBPNZDc

GBPUSDc

NZDJPYc

NZDUSDc

USDCADc

USDCHFc

USDJPYc

XAGUSDc

XAUUSDc

```
---
# All columns for function call `pxyq.column('ASSET')`
```txt

category

true_decimal_digits

proxy_stoploss_distance_covering_1_cash

proxy_lotsize_covering_1_cash

true_contract_size

true_contract_type

proxy_margin_with_leverage_50_covering_1_cash

proxy_margin_with_leverage_100_covering_1_cash

proxy_margin_with_leverage_200_covering_1_cash

proxy_margin_with_leverage_1000_covering_1_cash



true_tick_size

proxy_bid_price

proxy_ask_price

proxy_spread_in_ticks

proxy_spread_in_pips



proxy_long_swap_in_pips_for_standard_accounts

proxy_short_swap_in_pips_for_standard_accounts

proxy_commission_per_lot_per_side_for_pro_accounts

proxy_long_swap_in_pips_for_pro_accounts

proxy_short_swap_in_pips_for_pro_accounts

proxy_commission_per_lot_per_side_for_zero_accounts

proxy_long_swap_in_pips_for_zero_accounts

proxy_short_swap_in_pips_for_zero_accounts

proxy_commission_per_lot_per_side_for_rawspread_accounts

proxy_long_swap_in_pips_for_rawspread_accounts

proxy_short_swap_in_pips_for_rawspread_accounts

```

# NOTE: the function call `pxyq.column('ASSET')` will get the value of a cell of the input column with its corresponding input ASSET (or the row)

# Author: algorembrant