Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davecliff/BristolStockExchange
/ functions
Functions
365 in github.com/davecliff/BristolStockExchange
⨍
Functions
365
◇
Types & classes
51
↓ 6 callers
Method
profitpertime_update
Calculates the trader's profit per unit time, but only if it has been alive longer than profit_mintime This is to avoid situations wh
BSE.py:551
↓ 6 callers
Method
strat_csv_str
Take a ZIP strategy vector and return it as a csv-format string. :param strat: the vector of values for the ZIP trader's strategy
BSE.py:1552
↓ 6 callers
Function
unpack_params
Unpack the parameters for those trader-types that have them :param trader_params: the paramaters being passed to this trader.
BSE.py:2631
↓ 6 callers
Method
updateAgg
(self, up, buying, target)
Trader_AA.py:161
↓ 5 callers
Method
process_order_take
(self, time, order, verbose)
ZhenZhang/source/BSE2.py:614
↓ 4 callers
Method
__init__
(self, tid, otype, price, qty, time, qid)
BSE.py:76
↓ 4 callers
Method
__init__
(self, ttype, tid, balance, time)
ZhenZhang/source/BSE_trader_agents.py:17
↓ 4 callers
Method
belief_buy
(self, price)
snashall2019.py:1274
↓ 4 callers
Method
belief_buy
(self, price)
ZhenZhang/source/IGDX_MLOFI.py:413
↓ 4 callers
Method
belief_buy
(self, price)
ZhenZhang/source/GDX.py:152
↓ 4 callers
Method
belief_sell
(self, price)
snashall2019.py:1256
↓ 4 callers
Method
belief_sell
(self, price)
ZhenZhang/source/IGDX_MLOFI.py:395
↓ 4 callers
Method
belief_sell
(self, price)
ZhenZhang/source/GDX.py:134
↓ 4 callers
Method
book_CAN
(self, time, order, pool_id, verbose)
ZhenZhang/source/BSE2.py:227
↓ 4 callers
Method
del_order
What a trader calls when it wants to delete an existing customer order/assignment
BSE.py:544
↓ 4 callers
Method
delete_best
(self)
snashall2019.py:172
↓ 4 callers
Method
delete_best
When the best bid/ask has been hit/lifted, delete it from the book. :return: TraderID of the deleted order is return-value, as counte
BSE.py:205
↓ 4 callers
Method
publish_lob
(self, time, verbose)
snashall2019.py:344
↓ 4 callers
Method
publish_lob
Returns the public LOB data published by the exchange, i.e. the version of the LOB that's accessible to the traders. :param
BSE.py:424
↓ 3 callers
Method
bookkeep
(self, msg, time, verbose)
ZhenZhang/source/BSE_trader_agents.py:105
↓ 3 callers
Method
build_lob
(self)
snashall2019.py:106
↓ 3 callers
Method
build_lob
Take a list of orders and build a limit-order-book (lob) from it NB the exchange needs to know arrival times and trader-id associated
BSE.py:128
↓ 3 callers
Method
build_lob
(self, verbose)
ZhenZhang/source/BSE2.py:158
↓ 3 callers
Method
cal_depth_n
(self, lob, n)
ZhenZhang/source/Simple_MLOFI.py:109
↓ 3 callers
Method
cal_level_n_e
(self, current_lob, n)
ZhenZhang/source/Simple_MLOFI.py:24
↓ 3 callers
Method
mutate_strat
How to mutate the PRZI strategy values when evolving / hill-climbing :param s: the strategy to be mutated :param mode: 'ga
BSE.py:803
↓ 3 callers
Method
newton4Buying
(self)
Trader_AA.py:73
↓ 3 callers
Method
newton4Selling
(self)
Trader_AA.py:91
↓ 3 callers
Method
process_order
(self, time, order, verbose)
ZhenZhang/source/BSE2.py:879
↓ 3 callers
Method
process_order_LIM
(self, time, order, verbose)
ZhenZhang/source/BSE2.py:632
↓ 3 callers
Method
publish_lob
(self, time, tape_depth, verbose)
ZhenZhang/source/BSE2.py:1076
↓ 3 callers
Function
shuffle_traders
Shuffles the trader-I.D. character strings of the traders in trader_list :param ttype_char: the lead character on the trader-I.D. str
BSE.py:2612
↓ 3 callers
Function
sysmax_check
(price)
snashall2019.py:1777
↓ 3 callers
Function
sysmax_check
if price is greater than system maximum price, issue a warning and clip the price to the maximum
BSE.py:2788
↓ 3 callers
Function
sysmax_check
(price)
ZhenZhang/source/BSE2.py:1459
↓ 3 callers
Function
sysmin_check
(price)
snashall2019.py:1770
↓ 3 callers
Function
sysmin_check
if price is less than system minimum price, issue a warning and clip the price to the minimum
BSE.py:2781
↓ 3 callers
Function
sysmin_check
(price)
ZhenZhang/source/BSE2.py:1452
↓ 3 callers
Function
trader_type
Create a newly instantiated trader of the designated type. :param robottype: the 'ticker-symbol' abbreviation indicating what type of
BSE.py:2576
↓ 2 callers
Method
book_add
(self, order)
snashall2019.py:141
↓ 2 callers
Method
book_add
Add order to the dictionary holding the list of orders for one side of the LOB. Either overwrites old order from this trader
BSE.py:165
↓ 2 callers
Method
book_add
(self, order, verbose)
ZhenZhang/source/BSE2.py:217
↓ 2 callers
Method
book_del
(self, order)
snashall2019.py:160
↓ 2 callers
Method
book_del
Delete order from the dictionary holding the orders for one half of the book. Assumes max of one order per trader per list. C
BSE.py:191
↓ 2 callers
Method
book_take
(self, time, order, pool_id, verbose)
ZhenZhang/source/BSE2.py:263
↓ 2 callers
Method
bookkeep
(self, trade, order, verbose, time)
snashall2019.py:418
↓ 2 callers
Method
bookkeep
Update trader's individual records of transactions, profit/loss etc. :param trade: details of the transaction that took place.
BSE.py:569
↓ 2 callers
Method
calcRshout
(self, target, buying)
Trader_AA.py:138
↓ 2 callers
Method
calcTarget
(self)
snashall2019.py:610
↓ 2 callers
Method
calcTarget
(self)
ZhenZhang/source/IAA_NEW.py:327
↓ 2 callers
Method
calcTarget
(self)
ZhenZhang/source/BSE_trader_agents.py:951
↓ 2 callers
Method
calcTarget
(self)
ZhenZhang/source/BSE_trader_agents.py:1318
↓ 2 callers
Method
calcTarget
(self)
ZhenZhang/source/BSE_trader_agents.py:1877
↓ 2 callers
Method
calcTarget
(self)
ZhenZhang/source/IAA_MLOFI.py:241
↓ 2 callers
Method
calc_p_ask
(self, m, n)
snashall2019.py:1226
↓ 2 callers
Method
calc_p_ask
(self, m, n)
ZhenZhang/source/IGDX_MLOFI.py:365
↓ 2 callers
Method
calc_p_ask
(self, m, n)
ZhenZhang/source/GDX.py:104
↓ 2 callers
Method
calc_p_bid
(self, m, n)
snashall2019.py:1196
↓ 2 callers
Method
calc_p_bid
(self, m, n)
ZhenZhang/source/IGDX_MLOFI.py:335
↓ 2 callers
Method
calc_p_bid
(self, m, n)
ZhenZhang/source/GDX.py:74
↓ 2 callers
Method
del_exch_order
(self, oid, verbose)
ZhenZhang/source/BSE_trader_agents.py:93
↓ 2 callers
Method
del_exch_order
(self, oid, verbose)
ZhenZhang/source/BSE_trader_agents.py:1628
↓ 2 callers
Function
getissuetimes
(n_traders, mode, interval, shuffle, fittointerval)
snashall2019.py:1831
↓ 2 callers
Function
getissuetimes
Generate a list of issue/arrival times for a set of future customer-orders, over a specified time-interval. :param n_traders: how man
BSE.py:2852
↓ 2 callers
Function
getissuetimes
(n_traders, mode, interval, shuffle, fittointerval)
ZhenZhang/source/BSE2.py:1514
↓ 2 callers
Function
getorderprice
(i, sched, n, mode, issuetime)
snashall2019.py:1785
↓ 2 callers
Function
getorderprice
Generate a price for an order, using the given supply/demand schedule, and specified step-mode. :param i: index of trader (position i
BSE.py:2795
↓ 2 callers
Function
getorderprice
(i, sched_end, sched, n, mode, issuetime)
ZhenZhang/source/BSE2.py:1467
↓ 2 callers
Function
getschedmode
(time, os)
snashall2019.py:1873
↓ 2 callers
Function
getschedmode
return the step-mode for supply/demand schedule at the current time :param t_now: the current time :param order_schedules: di
BSE.py:2906
↓ 2 callers
Function
getschedmode
(time, os)
ZhenZhang/source/BSE2.py:1558
↓ 2 callers
Method
process_order_CAN
(self, time, order, verbose)
ZhenZhang/source/BSE2.py:567
↓ 2 callers
Method
process_order_XXX
(self, time, order, verbose)
ZhenZhang/source/BSE2.py:589
↓ 2 callers
Function
shuffle_traders
(ttype_char, n, traders)
snashall2019.py:1689
↓ 2 callers
Function
shuffle_traders
(ttype_char, n, traders)
ZhenZhang/source/BSE2.py:1370
↓ 2 callers
Method
strat_str
Pretty-print a string summarising this trader's strategy/strategies :return: the string
BSE.py:831
↓ 2 callers
Function
trade_stats
(expid, traders, dumpfile, time, lob)
snashall2019.py:1604
↓ 2 callers
Function
trade_stats
Dump CSV statistics on exchange data and trader population to file for later analysis. This makes no assumptions about the number of types of
BSE.py:2513
↓ 2 callers
Function
trader_type
(robottype, name)
snashall2019.py:1672
↓ 2 callers
Function
trader_type
(robottype, name)
ZhenZhang/source/BSE2.py:1191
↓ 2 callers
Method
updateTarget
(self)
Trader_AA.py:109
↓ 1 callers
Method
add_cust_order
(self, order, verbose)
ZhenZhang/source/BSE_trader_agents.py:42
↓ 1 callers
Method
add_lim_order
(self, order, verbose)
ZhenZhang/source/BSE2.py:553
↓ 1 callers
Method
add_order
(self, order, verbose)
snashall2019.py:221
↓ 1 callers
Method
add_order
(self, order, verbose)
snashall2019.py:398
↓ 1 callers
Method
add_order
add an order to the exchange -- either match with a counterparty order on LOB, or add to LOB. :param order: the order to be added to
BSE.py:257
↓ 1 callers
Method
add_order
What a trader calls when it receives a new customer order/assignment :param order: the customer order/assignment to be added
BSE.py:524
↓ 1 callers
Method
anonymize_lob
(self)
snashall2019.py:97
↓ 1 callers
Method
anonymize_lob
anonymize a lob, strip out order details, format as a sorted list NB for asks, the sorting should be reversed :return: <nothi
BSE.py:117
↓ 1 callers
Function
blotter_dump
Write the blotter for each trader. :param session_id: this market session's ID string (used for the filename). :param trdrs:
BSE.py:3065
↓ 1 callers
Method
cal_asks_n
(self, lob, n)
ZhenZhang/source/IAA_NEW.py:140
↓ 1 callers
Method
cal_asks_n
(self, lob, n)
ZhenZhang/source/IZIP_MLOFI.py:130
↓ 1 callers
Method
cal_asks_n
(self, lob, n)
ZhenZhang/source/IGDX_MLOFI.py:125
↓ 1 callers
Method
cal_asks_n
(self, lob, n)
ZhenZhang/source/ZZISHV.py:106
↓ 1 callers
Method
cal_bids_n
(self, lob, n)
ZhenZhang/source/IAA_NEW.py:123
↓ 1 callers
Method
cal_bids_n
(self, lob, n)
ZhenZhang/source/IZIP_MLOFI.py:113
↓ 1 callers
Method
cal_bids_n
(self, lob, n)
ZhenZhang/source/IGDX_MLOFI.py:108
↓ 1 callers
Method
cal_bids_n
(self, lob, n)
ZhenZhang/source/ZZISHV.py:89
↓ 1 callers
Method
cal_depth
(self, lob)
ZhenZhang/source/Simple_MLOFI.py:96
↓ 1 callers
Method
cal_depth_n
(self, lob, n)
ZhenZhang/source/IAA_NEW.py:221
next →
1–100 of 365, ranked by callers