~8K arrays with ~80 HTTP requests and write all arrays in a JSON file (~50Mb-150Mb)
$begingroup$
Functionality:
This script uses ~80 URL requests and writes ~8000 arrays to a file (~50Mb-150Mb).
Performance:
The only goal is making this script as fast/efficient (performance) as possible. There are alternative methods (such as relevant question), which I'm not sure how to implement. Would you be so kind and review my modified working code?
Alternative getSymbols()
:
public static function getSymbols() {
return array_map(function($line){ return str_getcsv($line, "t"); }, file(__DIR__ . self::SYMBOLS_PATH));
}
Entire Modified Code (Version II):
// local server and live
if($_SERVER['LOGNAME']==="NAME_OF_LOGNAME_GOES_HERE"){
error_reporting(E_ALL);
}else{
error_reporting(0);
}
date_default_timezone_set("UTC");
ini_set('max_execution_time' , 0);
ini_set('memory_limit','-1');
set_time_limit(0);
EquityRecords::allEquitiesSignleJSON(new EquityRecords());
Class EquityRecords
{
const NUMBER_OF_STOCKS_PER_REQUEST = 100;
const NEW_LINE = "n";
/**
*
* @var a string of iextrading symbols
*/
const SYMBOLS_PATH = '/../../config/z-iextrading-symbs.md';
/**
*
* @var a string of our symbols json directory
*/
const SYMBOLS_DIR = "/../../data/equities/real-time-60sec/z-raw-equilibrium-estimation";
/**
*
* @var a string of target path and query
*/
const TARGET_QUERY = "stock/market/batch?symbols=";
/**
*
* @var a string of iextrading base URL
*/
const BASE_URL = "https://api.iextrading.com/1.0/";
/**
*
* @var a string of iextrading end point
*/
const END_POINT = "&types=quote,chart&range=1m&last=10";
/**
*
* @var an integer for maximum number of stocks per URL on each call
*/
//***************** A ********************** //
// public static function getSymbols() {
// return array_map(function($line){ return str_getcsv($line, "t"); }, file(__DIR__ . self::SYMBOLS_PATH));
// }
public static function getSymbols(){
//***************** START: ALL SYMBOLS ARRAY ********************** //
// var: is a filename path directory, where there is an md file with list of equities
$list_of_equities_file= __DIR__ . self::SYMBOLS_PATH;
// var: is content of md file with list of equities
$content_of_equities= file_get_contents($list_of_equities_file);
// var is an array(3) of equities such as: string(4) "ZYNE", string(10) "2019-01-04", string(27) "ZYNERBA PHARMACEUTICALS INC"
// $symbols_array=preg_split('/rn|r|n/', $content_of_equities);
$symbols_array=preg_split('/R/', $content_of_equities);
//***************** END: ALL SYMBOLS ARRAY ********************** //
// child and mother arrays are created to help calling equities in batches of 100, which seems to be the API limit.
$child=array();
$mother=array();
// var: is 100 counter
$limit_counter=self::NUMBER_OF_STOCKS_PER_REQUEST;
foreach ($symbols_array as $ticker_arr){
$limit_counter=$limit_counter-1;
$symbols_array=preg_split('/t/', $ticker_arr);
array_push($child,$symbols_array);
if($limit_counter<=0){
$limit_counter=self::NUMBER_OF_STOCKS_PER_REQUEST;
array_push($mother, $child);
$child=array();
}
}
return $mother;
}
public static function allEquitiesSignleJSON(){
$equity_arrays=EquityRecords::getSymbols();
$base_url=self::BASE_URL.self::TARGET_QUERY;
$current_time=date("Y-m-d-H-i-s");
$all_equities=array();
// ticker: AAPL, GE, AMD
foreach ($equity_arrays as $ticker_arr) {
$ticker=array_column($ticker_arr, 0);
$equity_url=$base_url . implode("%2C", $ticker) . self::END_POINT;
$raw_eauity_json=file_get_contents($equity_url);
$raw_equity_array=json_decode($raw_eauity_json, true);
$all_equities=array_merge($all_equities, $raw_equity_array);
}
$all_equities_json=json_encode($all_equities);
$symbols_dir= __DIR__ . self::SYMBOLS_DIR;
if (!is_dir($symbols_dir)) {mkdir($symbols_dir, 0755,true);}
$raw_equity_file=$symbols_dir . "/" . $current_time . ".json";
$fp=fopen($raw_equity_file, "x+");
fwrite($fp, $all_equities_json);
fclose($fp);
echo "YAAAY! Equity JSON file success at " . __METHOD__ . " ! 💚 " . self::NEW_LINE;
}
}
Sample CSV:
AAPL 2019-01-04 APPLE INC
AAT 2019-01-04 AMERICAN ASSETS TRUST INC
AAU 2019-01-04 ALMADEN MINERALS LTD - B
AAWW 2019-01-04 ATLAS AIR WORLDWIDE HOLDINGS
AAXJ 2019-01-04 ISHARES MSCI ALL COUNTRY ASI
AAXN 2019-01-04 AXON ENTERPRISE INC
AB 2019-01-04 ALLIANCEBERNSTEIN HOLDING LP
ABAC 2019-01-04 RENMIN TIANLI GROUP INC
ABB 2019-01-04 ABB LTD-SPON ADR
ABBV 2019-01-04 ABBVIE INC
ABC 2019-01-04 AMERISOURCEBERGEN CORP
ABCB 2019-01-04 AMERIS BANCORP
ABDC 2019-01-04 ALCENTRA CAPITAL CORP
ABEO 2019-01-04 ABEONA THERAPEUTICS INC
ABEOW 2019-01-04
ABEV 2019-01-04 AMBEV SA-ADR
ABG 2019-01-04 ASBURY AUTOMOTIVE GROUP
ABIL 2019-01-04 ABILITY INC
ABIO 2019-01-04 ARCA BIOPHARMA INC
ABM 2019-01-04 ABM INDUSTRIES INC
ABMD 2019-01-04 ABIOMED INC
ABR 2019-01-04 ARBOR REALTY TRUST INC
ABR-A 2019-01-04
ABR-B 2019-01-04
ABR-C 2019-01-04
ABT 2019-01-04 ABBOTT LABORATORIES
ABTX 2019-01-04 ALLEGIANCE BANCSHARES INC
ABUS 2019-01-04 ARBUTUS BIOPHARMA CORP
AC 2019-01-04 ASSOCIATED CAPITAL GROUP - A
ACA 2019-01-04 ARCOSA INC
ACAD 2019-01-04 ACADIA PHARMACEUTICALS INC
ACB 2019-01-04 AURORA CANNABIS INC
ACBI 2019-01-04 ATLANTIC CAPITAL BANCSHARES
ACC 2019-01-04 AMERICAN CAMPUS COMMUNITIES
ACCO 2019-01-04 ACCO BRANDS CORP
ACER 2019-01-04 ACER THERAPEUTICS INC
ACES 2019-01-04 ALPS CLEAN ENERGY ETF
ACET 2019-01-04 ACETO CORP
ACGL 2019-01-04 ARCH CAPITAL GROUP LTD
ACGLO 2019-01-04
ACGLP 2019-01-04
ACH 2019-01-04 ALUMINUM CORP OF CHINA-ADR
ACHC 2019-01-04 ACADIA HEALTHCARE CO INC
ACHN 2019-01-04 ACHILLION PHARMACEUTICALS
ACHV 2019-01-04 ACHIEVE LIFE SCIENCES INC
ACIA 2019-01-04 ACACIA COMMUNICATIONS INC
ACIM 2019-01-04 SPDR MSCI ACWI IMI ETF
ACIU 2019-01-04 AC IMMUNE SA
ACIW 2019-01-04 ACI WORLDWIDE INC
ACLS 2019-01-04 AXCELIS TECHNOLOGIES INC
ACM 2019-01-04 AECOM
ACMR 2019-01-04 ACM RESEARCH INC-CLASS A
ACN 2019-01-04 ACCENTURE PLC-CL A
ACNB 2019-01-04 ACNB CORP
ACOR 2019-01-04 ACORDA THERAPEUTICS INC
ACP 2019-01-04 ABERDEEN INCOME CREDIT STRAT
ACRE 2019-01-04 ARES COMMERCIAL REAL ESTATE
ACRS 2019-01-04 ACLARIS THERAPEUTICS INC
ACRX 2019-01-04 ACELRX PHARMACEUTICALS INC
ACSG 2019-01-04 XTRACKERS MSCI ACWI EX USA E
ACSI 2019-01-04 AMERICAN CUSTOMER SATISFACTI
ACST 2019-01-04 ACASTI PHARMA INC
ACT 2019-01-04 ADVISORSHARES VICE ETF
ACTG 2019-01-04 ACACIA RESEARCH CORP
ACU 2019-01-04 ACME UNITED CORP
ACV 2019-01-04 ALLIANZGI DIVERSIFIED INCOME
ACWF 2019-01-04 ISHARES EDGE MSCI MULTIFACTO
ACWI 2019-01-04 ISHARES MSCI ACWI ETF
ACWV 2019-01-04 ISHARES EDGE MSCI MIN VOL GL
ACWX 2019-01-04 ISHARES MSCI ACWI EX US ETF
ACY 2019-01-04 AEROCENTURY CORP
ADAP 2019-01-04 ADAPTIMMUNE THERAPEUTICS-ADR
ADBE 2019-01-04 ADOBE INC
ADC 2019-01-04 AGREE REALTY CORP
ADES 2019-01-04 ADVANCED EMISSIONS SOLUTIONS
ADI 2019-01-04 ANALOG DEVICES INC
ADIL 2019-01-04 ADIAL PHARMACEUTICALS INC
ADILW 2019-01-04
ADM 2019-01-04 ARCHER-DANIELS-MIDLAND CO
ADMA 2019-01-04 ADMA BIOLOGICS INC
ADMP 2019-01-04 ADAMIS PHARMACEUTICALS CORP
ADMS 2019-01-04 ADAMAS PHARMACEUTICALS INC
ADNT 2019-01-04 ADIENT PLC
ADOM 2019-01-04 ADOMANI INC
ADP 2019-01-04 AUTOMATIC DATA PROCESSING
ADRA 2019-01-04 INVESCO BLDRS ASIA 50 ADR IN
ADRD 2019-01-04 INVESCO BLDRS DEVELOPED MARK
ADRE 2019-01-04 INVESCO BLDRS EMERGING MARKE
ADRO 2019-01-04 ADURO BIOTECH INC
ADRU 2019-01-04 INVESCO BLDRS EUROPE SELECT
ADS 2019-01-04 ALLIANCE DATA SYSTEMS CORP
ADSK 2019-01-04 AUTODESK INC
ADSW 2019-01-04 ADVANCED DISPOSAL SERVICES I
ADT 2019-01-04 ADT INC
ADTN 2019-01-04 ADTRAN INC
ADUS 2019-01-04 ADDUS HOMECARE CORP
ADVM 2019-01-04 ADVERUM BIOTECHNOLOGIES INC
ADX 2019-01-04 ADAMS DIVERSIFIED EQUITY
ADXS 2019-01-04 ADVAXIS INC
AE 2019-01-04 ADAMS RESOURCES & ENERGY INC
AEB 2019-01-04
AED 2019-01-04
AEE 2019-01-04 AMEREN CORPORATION
AEF 2019-01-04 ABERDEEN EM MRKT EQTY INC
AEG 2019-01-04 AEGON N.V.-NY REG SHR
AEGN 2019-01-04 AEGION CORP
AEH 2019-01-04
AEHR 2019-01-04 AEHR TEST SYSTEMS
AEIS 2019-01-04 ADVANCED ENERGY INDUSTRIES
AEL 2019-01-04 AMERICAN EQUITY INVT LIFE HL
AEM 2019-01-04 AGNICO EAGLE MINES LTD
AEMD 2019-01-04 AETHLON MEDICAL INC
AEO 2019-01-04 AMERICAN EAGLE OUTFITTERS
AEP 2019-01-04 AMERICAN ELECTRIC POWER
AER 2019-01-04 AERCAP HOLDINGS NV
AERI 2019-01-04 AERIE PHARMACEUTICALS INC
AES 2019-01-04 AES CORP
AETI 2019-01-04 AMERICAN ELECTRIC TECHNOLOGI
AEY 2019-01-04 ADDVANTAGE TECHNOLOGIES GRP
AEYE 2019-01-04 AUDIOEYE INC
AEZS 2019-01-04 AETERNA ZENTARIS INC
AFB 2019-01-04 ALLIANCE NATIONAL MUNI INC
AFC 2019-01-04
AFG 2019-01-04 AMERICAN FINANCIAL GROUP INC
AFGE 2019-01-04
AFGH 2019-01-04
AFH 2019-01-04 ATLAS FINANCIAL HOLDINGS INC
AFHBL 2019-01-04
AFI 2019-01-04 ARMSTRONG FLOORING INC
AFIF 2019-01-04 ANFIELD UNIVERSAL FIXED INCO
AFIN 2019-01-04 AMERICAN FINANCE TRUST INC
AFK 2019-01-04 VANECK VECTORS AFRICA INDEX
AFL 2019-01-04 AFLAC INC
AFMD 2019-01-04 AFFIMED NV
AFSI-A 2019-01-04
AFSI-B 2019-01-04
AFSI-C 2019-01-04
AFSI-D 2019-01-04
AFSI-E 2019-01-04
AFSI-F 2019-01-04
AFSS 2019-01-04
AFST 2019-01-04
AFT 2019-01-04 APOLLO SENIOR FLOATING RATE
AFTY 2019-01-04 CSOP FTSE CHINA A50 ETF
AG 2019-01-04 FIRST MAJESTIC SILVER CORP
AGCO 2019-01-04 AGCO CORP
AGD 2019-01-04 ABERDEEN GLBL DYN DIVID
AGE 2019-01-04 AGEX THERAPEUTICS INC
AGEN 2019-01-04 AGENUS INC
AGF 2019-01-04 DB AGRICULTURE LONG ETN
AGFS 2019-01-04 AGROFRESH SOLUTIONS INC
AGFSW 2019-01-04
AGG 2019-01-04 ISHARES CORE U.S. AGGREGATE
AGGE 2019-01-04 IQ ENHANCED CORE BOND US ETF
AGGP 2019-01-04 IQ ENHANCED CORE PLUS BOND U
AGGY 2019-01-04 WISDOMTREE YIELD ENHANCED US
AGI 2019-01-04 ALAMOS GOLD INC-CLASS A
AGIO 2019-01-04 AGIOS PHARMACEUTICALS INC
AGLE 2019-01-04 AEGLEA BIOTHERAPEUTICS INC
AGM 2019-01-04 FEDERAL AGRIC MTG CORP-CL C
AGM-A 2019-01-04
AGM-B 2019-01-04
AGM-C 2019-01-04
AGM.A 2019-01-04 FEDERAL AGRIC MTG CORP-CL A
AGMH 2019-01-04 AGM GROUP HOLDINGS INC
AGN 2019-01-04 ALLERGAN PLC
AGNC 2019-01-04 AGNC INVESTMENT CORP
AGNCB 2019-01-04
AGNCN 2019-01-04
AGND 2019-01-04 WISDOMTREE TRUST WISDOMTREE
AGO 2019-01-04 ASSURED GUARANTY LTD
AGO-B 2019-01-04
AGO-E 2019-01-04
AGO-F 2019-01-04
AGQ 2019-01-04 PROSHARES ULTRA SILVER
AGR 2019-01-04 AVANGRID INC
AGRO 2019-01-04 ADECOAGRO SA
AGRX 2019-01-04 AGILE THERAPEUTICS INC
AGS 2019-01-04 PLAYAGS INC
AGT 2019-01-04 ISHARES ARGENTINA
AGTC 2019-01-04 APPLIED GENETIC TECHNOLOGIES
AGX 2019-01-04 ARGAN INC
AGYS 2019-01-04 AGILYSYS INC
AGZ 2019-01-04 ISHARES AGENCY BOND ETF
AGZD 2019-01-04 WISDOMTREE TRUST WISDOMTREE
AHC 2019-01-04 A H BELO CORP-A
AHH 2019-01-04 ARMADA HOFFLER PROPERTIES IN
AHL 2019-01-04 ASPEN INSURANCE HOLDINGS LTD
AHL-C 2019-01-04
AHL-D 2019-01-04
AHPI 2019-01-04 ALLIED HEALTHCARE PRODUCTS
AHT 2019-01-04 ASHFORD HOSPITALITY TRUST
AHT-D 2019-01-04
AHT-F 2019-01-04
AHT-G 2019-01-04
AHT-H 2019-01-04
AHT-I 2019-01-04
AI 2019-01-04 ARLINGTON ASSET INVESTMENT-A
AI-B 2019-01-04
AIA 2019-01-04 ISHARES ASIA 50 ETF
AIC 2019-01-04
AIEQ 2019-01-04 AI POWERED EQUITY ETF
AIF 2019-01-04 APOLLO TACTICAL INCOME FUND
AIG 2019-01-04 AMERICAN INTERNATIONAL GROUP
AIG+ 2019-01-04
AIHS 2019-01-04 SENMIAO TECHNOLOGY LTD
AIIQ 2019-01-04 AI POWERED INTERNATIONAL EQU
AIMC 2019-01-04 ALTRA INDUSTRIAL MOTION CORP
AIMT 2019-01-04 AIMMUNE THERAPEUTICS INC
AIN 2019-01-04 ALBANY INTL CORP-CL A
AINC 2019-01-04 ASHFORD INC
AINV 2019-01-04 APOLLO INVESTMENT CORP
AIPT 2019-01-04 PRECISION THERAPEUTICS INC
AIQ 2019-01-04 Global X Future Analytics TE
AIR 2019-01-04 AAR CORP
AIRG 2019-01-04 AIRGAIN INC
AIRI 2019-01-04 AIR INDUSTRIES GROUP
AIRR 2019-01-04 FIRST TRUST RBA AMERICAN IND
AIRT 2019-01-04 AIR T INC
AIT 2019-01-04 APPLIED INDUSTRIAL TECH INC
AIV 2019-01-04 APARTMENT INVT & MGMT CO -A
AIV-A 2019-01-04
AIW 2019-01-04
AIY 2019-01-04
AIZ 2019-01-04 ASSURANT INC
AIZP 2019-01-04
AJG 2019-01-04 ARTHUR J GALLAGHER & CO
AJRD 2019-01-04 AEROJET ROCKETDYNE HOLDINGS
AJX 2019-01-04 GREAT AJAX CORP
AJXA 2019-01-04
AKAM 2019-01-04 AKAMAI TECHNOLOGIES INC
AKAO 2019-01-04 ACHAOGEN INC
AKBA 2019-01-04 AKEBIA THERAPEUTICS INC
AKCA 2019-01-04 AKCEA THERAPEUTICS INC
AKER 2019-01-04 AKERS BIOSCIENCES INC
AKG 2019-01-04 ASANKO GOLD INC
AKO.A 2019-01-04 EMBOTELLADORA ANDINA-ADR A
AKO.B 2019-01-04 EMBOTELLADORA ANDINA-ADR B
AKP 2019-01-04 ALLIANCE CALIF MUNI INCOME
AKR 2019-01-04 ACADIA REALTY TRUST
AKRX 2019-01-04 AKORN INC
AKS 2019-01-04 AK STEEL HOLDING CORP
AKTS 2019-01-04 AKOUSTIS TECHNOLOGIES INC
AKTX 2019-01-04 AKARI THERAPEUTICS PLC-ADR
AL 2019-01-04 AIR LEASE CORP
ALAC 2019-01-04 ALBERTON ACQUISITION CORP
ALACR 2019-01-04 ALBERTON ACQUISITION CO-RTS
ALACU 2019-01-04 ALBERTON ACQUISITION CORP
ALACW 2019-01-04
ALB 2019-01-04 ALBEMARLE CORP
ALBO 2019-01-04 ALBIREO PHARMA INC
ALCO 2019-01-04 ALICO INC
ALD 2019-01-04 WISDOMTREE ASIA LOCAL DEBT
ALDR 2019-01-04 ALDER BIOPHARMACEUTICALS INC
ALDX 2019-01-04 ALDEYRA THERAPEUTICS INC
ALE 2019-01-04 ALLETE INC
ALEX 2019-01-04 ALEXANDER & BALDWIN INC
ALFA 2019-01-04 ALPHACLONE ALTERNATIVE ALPHA
ALG 2019-01-04 ALAMO GROUP INC
ALGN 2019-01-04 ALIGN TECHNOLOGY INC
ALGR 2019-01-04 ALLEGRO MERGER CORP
ALGRR 2019-01-04 ALLEGRO MERGER CORP-RTS
ALGRU 2019-01-04 ALLEGRO MERGER CORP
ALGRW 2019-01-04
ALGT 2019-01-04 ALLEGIANT TRAVEL CO
ALIM 2019-01-04 ALIMERA SCIENCES INC
ALJJ 2019-01-04 ALJ REGIONAL HOLDINGS INC
ALK 2019-01-04 ALASKA AIR GROUP INC
ALKS 2019-01-04 ALKERMES PLC
ALL 2019-01-04 ALLSTATE CORP
ALL-A 2019-01-04
ALL-B 2019-01-04
ALL-D 2019-01-04
ALL-E 2019-01-04
ALL-F 2019-01-04
ALL-G 2019-01-04
ALLE 2019-01-04 ALLEGION PLC
ALLK 2019-01-04 ALLAKOS INC
ALLO 2019-01-04 ALLOGENE THERAPEUTICS INC
ALLT 2019-01-04 ALLOT COMMUNICATIONS LTD
ALLY 2019-01-04 ALLY FINANCIAL INC
ALLY-A 2019-01-04
ALNA 2019-01-04 ALLENA PHARMACEUTICALS INC
ALNY 2019-01-04 ALNYLAM PHARMACEUTICALS INC
ALO 2019-01-04 ALIO GOLD INC
ALOT 2019-01-04 ASTRONOVA INC
ALP-Q 2019-01-04
ALPN 2019-01-04 ALPINE IMMUNE SCIENCES INC
ALQA 2019-01-04 ALLIQUA BIOMEDICAL INC
ALRM 2019-01-04 ALARM.COM HOLDINGS INC
ALRN 2019-01-04 AILERON THERAPEUTICS INC
ALSK 2019-01-04 ALASKA COMM SYSTEMS GROUP
ALSN 2019-01-04 ALLISON TRANSMISSION HOLDING
ALT 2019-01-04 ALTIMMUNE INC
ALTM 2019-01-04 ALTUS MIDSTREAM CO -A
ALTR 2019-01-04 ALTAIR ENGINEERING INC - A
ALTS 2019-01-04 PRSHR MRNGSTR ALT SOL ETF
ALTY 2019-01-04 GLOBAL X SUPERDIVIDEND ALTER
ALV 2019-01-04 AUTOLIV INC
ALX 2019-01-04 ALEXANDER'S INC
ALXN 2019-01-04 ALEXION PHARMACEUTICALS INC
ALYA 2019-01-04 ALITHYA GROUP INC-CLASS A
ALZH 2019-01-04 ALZHEON INC
AM 2019-01-04 ANTERO MIDSTREAM PARTNERS LP
AMAG 2019-01-04 AMAG PHARMACEUTICALS INC
AMAL 2019-01-04 AMALGAMATED BK OF NEW YORK-A
AMAT 2019-01-04 APPLIED MATERIALS INC
AMBA 2019-01-04 AMBARELLA INC
AMBC 2019-01-04 AMBAC FINANCIAL GROUP INC
AMBCW 2019-01-04
AMBO 2019-01-04 AMBOW EDUCATION HOLDING-ADR
AMBR 2019-01-04 AMBER ROAD INC
AMC 2019-01-04 AMC ENTERTAINMENT HLDS-CL A
AMCA 2019-01-04 ISHARES RUSSELL 1000 US REV
AMCI 2019-01-04 AMCI ACQUISITION CORP-CL A
AMCIU 2019-01-04 AMCI ACQUISITION CORP
AMCIW 2019-01-04
AMCN 2019-01-04 AIRMEDIA GROUP INC-ADR
AMCX 2019-01-04 AMC NETWORKS INC-A
AMD 2019-01-04 ADVANCED MICRO DEVICES
AME 2019-01-04 AMETEK INC
AMED 2019-01-04 AMEDISYS INC
AMEH 2019-01-04 APOLLO MEDICAL HOLDINGS INC
AMG 2019-01-04 AFFILIATED MANAGERS GROUP
AMGN 2019-01-04 AMGEN INC
AMGP 2019-01-04 ANTERO MIDSTREAM GP LP
AMH 2019-01-04 AMERICAN HOMES 4 RENT- A
AMH-D 2019-01-04
AMH-E 2019-01-04
AMH-F 2019-01-04
AMH-G 2019-01-04
AMH-H 2019-01-04
AMID 2019-01-04 AMERICAN MIDSTREAM PARTNERS
AMJ 2019-01-04 JPMORGAN ALERIAN MLP INDEX
AMJL 2019-01-04 X-LINKS 2XLEVRG ALERIAN MLP
AMKR 2019-01-04 AMKOR TECHNOLOGY INC
AMLP 2019-01-04 ALERIAN MLP ETF
AMMA 2019-01-04 ALLIANCE MMA INC
AMN 2019-01-04 AMN HEALTHCARE SERVICES INC
AMNB 2019-01-04 AMER NATL BNKSHS/DANVILLE VA
AMOT 2019-01-04 ALLIED MOTION TECHNOLOGIES
AMOV 2019-01-04 AMERICA MOVIL-ADR SERIES A
AMP 2019-01-04 AMERIPRISE FINANCIAL INC
AMPE 2019-01-04 AMPIO PHARMACEUTICALS INC
AMPH 2019-01-04 AMPHASTAR PHARMACEUTICALS IN
AMR 2019-01-04 ALTA MESA RESOURCES INC-A
AMRB 2019-01-04 AMERICAN RIVER BANKSHRS (CA)
AMRC 2019-01-04 AMERESCO INC-CL A
AMRH 2019-01-04 AMERI HOLDINGS INC
AMRHW 2019-01-04
AMRK 2019-01-04 A-MARK PRECIOUS METALS INC
AMRN 2019-01-04 AMARIN CORP PLC -ADR
AMRS 2019-01-04 AMYRIS INC
AMRWW 2019-01-04
AMRX 2019-01-04 AMNEAL PHARMACEUTICALS INC
AMS 2019-01-04 AMERICAN SHARED HOSPITAL SER
AMSC 2019-01-04 AMERICAN SUPERCONDUCTOR CORP
AMSF 2019-01-04 AMERISAFE INC
AMSWA 2019-01-04 AMERICAN SOFTWARE INC-CL A
AMT 2019-01-04 AMERICAN TOWER CORP
AMTB 2019-01-04 MERCANTIL BANK HOLDING COR-A
AMTBB 2019-01-04 MERCANTIL BANK HOLDING COR-B
AMTD 2019-01-04 TD AMERITRADE HOLDING CORP
AMTX 2019-01-04 AEMETIS INC
AMU 2019-01-04 ETRACS ALERIAN MLP ETN
AMUB 2019-01-04 ETRACS ALERIAN MLP IND SER B
AMWD 2019-01-04 AMERICAN WOODMARK CORP
AMX 2019-01-04 AMERICA MOVIL-SPN ADR CL L
AMZA 2019-01-04 INFRACAP MLP ETF
AMZN 2019-01-04 AMAZON.COM INC
AN 2019-01-04 AUTONATION INC
ANAB 2019-01-04 ANAPTYSBIO INC
ANAT 2019-01-04 AMERICAN NATIONAL INSURANCE
ANCX 2019-01-04 ACCESS NATIONAL CORP
ANDE 2019-01-04 ANDERSONS INC/THE
ANDX 2019-01-04 ANDEAVOR LOGISTICS LP
ANET 2019-01-04 ARISTA NETWORKS INC
ANF 2019-01-04 ABERCROMBIE & FITCH CO-CL A
ANFI 2019-01-04 AMIRA NATURE FOODS LTD
ANGI 2019-01-04 ANGI HOMESERVICES INC- A
ANGL 2019-01-04 VANECK VECTORS FALLEN ANGEL
ANGO 2019-01-04 ANGIODYNAMICS INC
ANH 2019-01-04 ANWORTH MORTGAGE ASSET CORP
ANH-A 2019-01-04
ANH-B 2019-01-04
ANH-C 2019-01-04
ANIK 2019-01-04 ANIKA THERAPEUTICS INC
ANIP 2019-01-04 ANI PHARMACEUTICALS INC
ANIX 2019-01-04 ANIXA BIOSCIENCES INC
ANSS 2019-01-04 ANSYS INC
ANTM 2019-01-04 ANTHEM INC
ANY 2019-01-04 SPHERE 3D CORP
AOA 2019-01-04 ISHARES CORE AGGRESSIVE ALLO
AOBC 2019-01-04 AMERICAN OUTDOOR BRANDS CORP
AOD 2019-01-04 ABERDEEN TTL DYN DIVID
AOK 2019-01-04 ISHARES CORE CONSERVATIVE AL
AOM 2019-01-04 ISHARES CORE MODERATE ALLOCA
AON 2019-01-04 AON PLC
AOR 2019-01-04 ISHARES CORE GROWTH ALLOCATI
AOS 2019-01-04 SMITH (A.O.) CORP
AOSL 2019-01-04 ALPHA & OMEGA SEMICONDUCTOR
AP 2019-01-04 AMPCO-PITTSBURGH CORP
APA 2019-01-04 APACHE CORP
APAM 2019-01-04 ARTISAN PARTNERS ASSET MA -A
APB 2019-01-04 ASIA PACIFIC FUND INC
APC 2019-01-04 ANADARKO PETROLEUM CORP
APD 2019-01-04 AIR PRODUCTS & CHEMICALS INC
APDN 2019-01-04 APPLIED DNA SCIENCES INC
APDNW 2019-01-04
APEI 2019-01-04 AMERICAN PUBLIC EDUCATION
APEN 2019-01-04 APOLLO ENDOSURGERY INC
APF 2019-01-04 MORGAN STANLEY ASIA PACIFIC
APH 2019-01-04 AMPHENOL CORP-CL A
APHA 2019-01-04 APHRIA INC
APHB 2019-01-04 AMPLIPHI BIOSCIENCES CORP
APLE 2019-01-04 APPLE HOSPITALITY REIT INC
APLS 2019-01-04 APELLIS PHARMACEUTICALS INC
APM 2019-01-04 APTORUM GROUP LTD-CLASS A
APO 2019-01-04 APOLLO GLOBAL MANAGEMENT - A
APO-A 2019-01-04
APO-B 2019-01-04
APOG 2019-01-04 APOGEE ENTERPRISES INC
APOP 2019-01-04 CELLECT BIOTECHNOLOGY LT-ADR
APOPW 2019-01-04
APPF 2019-01-04 APPFOLIO INC - A
APPN 2019-01-04 APPIAN CORP
APPS 2019-01-04 DIGITAL TURBINE INC
APRI 2019-01-04 APRICUS BIOSCIENCES INC
APRN 2019-01-04 BLUE APRON HOLDINGS INC-A
APT 2019-01-04 ALPHA PRO TECH LTD
APTI 2019-01-04 APPTIO INC - CLASS A
APTO 2019-01-04 APTOSE BIOSCIENCES INC
APTS 2019-01-04 PREFERRED APARTMENT COMMUN-A
APTV 2019-01-04 APTIV PLC
APTX 2019-01-04 APTINYX INC
APU 2019-01-04 AMERIGAS PARTNERS-LP
APVO 2019-01-04 APTEVO THERAPEUTICS INC
APWC 2019-01-04 ASIA PACIFIC WIRE & CABLE
APY 2019-01-04 APERGY CORP
APYX 2019-01-04 APYX MEDICAL CORP
AQ 2019-01-04 AQUANTIA CORP
AQB 2019-01-04 AQUABOUNTY TECHNOLOGIES
AQMS 2019-01-04 AQUA METALS INC
AQN 2019-01-04 ALGONQUIN POWER & UTILITIES
AQNA 2019-01-04
AQST 2019-01-04 AQUESTIVE THERAPEUTICS INC
AQUA 2019-01-04 EVOQUA WATER TECHNOLOGIES CO
AQXP 2019-01-04 AQUINOX PHARMACEUTICALS INC
AR 2019-01-04 ANTERO RESOURCES CORP
ARA 2019-01-04 AMERICAN RENAL ASSOCIATES HO
ARAV 2019-01-04 ARAVIVE INC
ARAY 2019-01-04 ACCURAY INC
ARC 2019-01-04 ARC DOCUMENT SOLUTIONS INC
ARCB 2019-01-04 ARCBEST CORP
ARCC 2019-01-04 ARES CAPITAL CORP
ARCE 2019-01-04 ARCO PLATFORM LTD - CLASS A
ARCH 2019-01-04 ARCH COAL INC - A
ARCI 2019-01-04 APPLIANCE RECYCLING CTRS AMR
ARCM 2019-01-04 ARROW RESERVE CAP MANAG ETF
ARCO 2019-01-04 ARCOS DORADOS HOLDINGS INC-A
ARCT 2019-01-04 ARCTURUS THERAPEUTICS LTD
ARCW 2019-01-04 ARC GROUP WORLDWIDE INC
ARD 2019-01-04 ARDAGH GROUP SA
ARDC 2019-01-04 ARES DYNAMIC CREDIT ALLOCATI
ARDM 2019-01-04 ARADIGM CORP
ARDS 2019-01-04 ARIDIS PHARMACEUTICALS INC
ARDX 2019-01-04 ARDELYX INC
ARE 2019-01-04 ALEXANDRIA REAL ESTATE EQUIT
ARE-D 2019-01-04
ARES 2019-01-04 ARES MANAGEMENT CORP - A
ARES-A 2019-01-04
AREX 2019-01-04 APPROACH RESOURCES INC
ARGD 2019-01-04
ARGO 2019-01-04 ARGO GROUP INTERNATIONAL
ARGT 2019-01-04 GLOBAL X MSCI ARGENTINA ETF
ARGX 2019-01-04 ARGENX SE - ADR
ARI 2019-01-04 APOLLO COMMERCIAL REAL ESTAT
ARI-C 2019-01-04
ARKG 2019-01-04 ARK GENOMIC REVL MULT-SECTOR
ARKK 2019-01-04 ARK INNOVATION ETF
ARKQ 2019-01-04 ARK INDUSTRIAL INNOVATION
ARKR 2019-01-04 ARK RESTAURANTS CORP
ARKW 2019-01-04 ARK WEB X.O ETF
ARL 2019-01-04 AMERICAN REALTY INVESTORS IN
ARLO 2019-01-04 ARLO TECHNOLOGIES INC
ARLP 2019-01-04 ALLIANCE RESOURCE PARTNERS
ARMK 2019-01-04 ARAMARK
ARNA 2019-01-04 ARENA PHARMACEUTICALS INC
ARNC 2019-01-04 ARCONIC INC
ARNC- 2019-01-04
AROC 2019-01-04 ARCHROCK INC
AROW 2019-01-04 ARROW FINANCIAL CORP
ARPO 2019-01-04 AERPIO PHARMACEUTICALS INC
ARQL 2019-01-04 ARQULE INC
ARR 2019-01-04 ARMOUR RESIDENTIAL REIT INC
ARR-A 2019-01-04
ARR-B 2019-01-04
ARRS 2019-01-04 ARRIS INTERNATIONAL PLC
ARRY 2019-01-04 ARRAY BIOPHARMA INC
ARTNA 2019-01-04 ARTESIAN RESOURCES CORP-CL A
ARTW 2019-01-04 ART'S-WAY MANUFACTURING CO
ARTX 2019-01-04 AROTECH CORP
ARVN 2019-01-04 ARVINAS INC
ARW 2019-01-04 ARROW ELECTRONICS INC
ARWR 2019-01-04 ARROWHEAD PHARMACEUTICALS IN
ARYA 2019-01-04 ARYA SCIENCES ACQUISITION-A
ARYAU 2019-01-04 ARYA SCIENCES ACQUISITION CO
ARYAW 2019-01-04
ASA 2019-01-04 ASA GOLD AND PRECIOUS METALS
ASB 2019-01-04 ASSOCIATED BANC-CORP
ASB-C 2019-01-04
ASB-D 2019-01-04
ASB-E 2019-01-04
ASC 2019-01-04 ARDMORE SHIPPING CORP
ASCMA 2019-01-04 ASCENT CAPITAL GROUP INC-A
ASEA 2019-01-04 GLOBAL X FTSE SOUTHEAST ASIA
ASET 2019-01-04 FLEXSHARES REAL ASSETS FUND
ASFI 2019-01-04 ASTA FUNDING INC
ASG 2019-01-04 LIBERTY ALL-STAR GROWTH FD
ASGN 2019-01-04 ASGN INC
ASH 2019-01-04 ASHLAND GLOBAL HOLDINGS INC
ASHR 2019-01-04 XTRACKERS HARVEST CSI 300 CH
ASHS 2019-01-04 XTRACKERS HARVEST CSI 500 CH
ASHX 2019-01-04 XTRACKERS MSCI CHINA A INCLU
ASIX 2019-01-04 ADVANSIX INC
ASLN 2019-01-04 ASLAN PHARMACEUTICALS LT-ADR
ASM 2019-01-04 AVINO SILVER & GOLD MINES
ASMB 2019-01-04 ASSEMBLY BIOSCIENCES INC
ASML 2019-01-04 ASML HOLDING NV-NY REG SHS
ASNA 2019-01-04 ASCENA RETAIL GROUP INC
ASND 2019-01-04 ASCENDIS PHARMA A/S - ADR
ASNS 2019-01-04 ARSANIS INC
ASPN 2019-01-04 ASPEN AEROGELS INC
ASPS 2019-01-04 ALTISOURCE PORTFOLIO SOL
ASPU 2019-01-04 ASPEN GROUP INC
ASR 2019-01-04 GRUPO AEROPORTUARIO SUR-ADR
ASRT 2019-01-04 ASSERTIO THERAPEUTICS INC
ASRV 2019-01-04 AMERISERV FINANCIAL INC
ASRVP 2019-01-04
AST 2019-01-04 ASTERIAS BIOTHERAPEUTICS
ASTC 2019-01-04 ASTROTECH CORP
ASTE 2019-01-04 ASTEC INDUSTRIES INC
ASUR 2019-01-04 ASURE SOFTWARE INC
ASV 2019-01-04 ASV HOLDINGS INC
ASX 2019-01-04 ASE TECHNOLOGY HOLDING -ADR
ASYS 2019-01-04 AMTECH SYSTEMS INC
AT 2019-01-04 ATLANTIC POWER CORP
ATAI 2019-01-04 ATA INC-ADR
ATAX 2019-01-04 AMERICA FIRST MULTIFAMILY IN
ATEC 2019-01-04 ALPHATEC HOLDINGS INC
ATEN 2019-01-04 A10 NETWORKS INC
ATGE 2019-01-04 ADTALEM GLOBAL EDUCATION INC
ATH 2019-01-04 ATHENE HOLDING LTD-CLASS A
ATHM 2019-01-04 AUTOHOME INC-ADR
ATHN 2019-01-04 ATHENAHEALTH INC
ATHX 2019-01-04 ATHERSYS INC
ATI 2019-01-04 ALLEGHENY TECHNOLOGIES INC
ATIS 2019-01-04 ATTIS INDUSTRIES INC
ATISW 2019-01-04
ATKR 2019-01-04 ATKORE INTERNATIONAL GROUP I
ATLC 2019-01-04 ATLANTICUS HOLDINGS CORP
ATLO 2019-01-04 AMES NATIONAL CORP
ATMP 2019-01-04 BARCLAYS ETN+ SELECT MLP ETN
ATNI 2019-01-04 ATN INTERNATIONAL INC
ATNM 2019-01-04 ACTINIUM PHARMACEUTICALS INC
ATNX 2019-01-04 ATHENEX INC
ATO 2019-01-04 ATMOS ENERGY CORP
ATOM 2019-01-04 ATOMERA INC
ATOS 2019-01-04 ATOSSA GENETICS INC
ATR 2019-01-04 APTARGROUP INC
ATRA 2019-01-04 ATARA BIOTHERAPEUTICS INC
ATRC 2019-01-04 ATRICURE INC
ATRI 2019-01-04 ATRION CORPORATION
ATRO 2019-01-04 ASTRONICS CORP
ATRS 2019-01-04 ANTARES PHARMA INC
ATSG 2019-01-04 AIR TRANSPORT SERVICES GROUP
ATTO 2019-01-04 ATENTO SA
ATTU 2019-01-04 ATTUNITY LTD
ATU 2019-01-04 ACTUANT CORP-A
ATUS 2019-01-04 ALTICE USA INC- A
ATV 2019-01-04 ACORN INTERNATIONAL INC-ADR
ATVI 2019-01-04 ACTIVISION BLIZZARD INC
ATXI 2019-01-04 AVENUE THERAPEUTICS INC
AU 2019-01-04 ANGLOGOLD ASHANTI-SPON ADR
AUBN 2019-01-04 AUBURN NATL BANCORPORATION
AUDC 2019-01-04 AUDIOCODES LTD
AUG 2019-01-04 AURYN RESOURCES INC
AUGR 2019-01-04 DEFIANCE FUTURE TECH ETF
AUMN 2019-01-04 GOLDEN MINERALS CO
AUO 2019-01-04 AU OPTRONICS CORP-SPON ADR
AUPH 2019-01-04 AURINIA PHARMACEUTICALS INC
AUSE 2019-01-04 WISDOMTREE AUSTRALIA DIVIDEN
AUSF 2019-01-04 GLOBAL X ADAPTIVE US FACTOR
AUTL 2019-01-04 AUTOLUS THERAPEUTICS PLC
AUTO 2019-01-04 AUTOWEB INC
AUY 2019-01-04 YAMANA GOLD INC
AVA 2019-01-04 AVISTA CORP
AVAL 2019-01-04 GRUPO AVAL ACCIONES Y VALORE
AVAV 2019-01-04 AEROVIRONMENT INC
AVB 2019-01-04 AVALONBAY COMMUNITIES INC
AVCO 2019-01-04 AVALON GLOBOCARE CORP
AVD 2019-01-04 AMERICAN VANGUARD CORP
AVDL 2019-01-04 AVADEL PHARMACEUTICALS PLC
AVEO 2019-01-04 AVEO PHARMACEUTICALS INC
AVGO 2019-01-04 BROADCOM INC
AVGR 2019-01-04 AVINGER INC
AVH 2019-01-04 AVIANCA HOLDINGS SA-SPON ADR
AVID 2019-01-04 AVID TECHNOLOGY INC
AVK 2019-01-04 ADVENT CLAYMORE CVT SEC& INC
AVLR 2019-01-04 AVALARA INC
AVNS 2019-01-04 AVANOS MEDICAL INC
AVNW 2019-01-04 AVIAT NETWORKS INC
AVP 2019-01-04 AVON PRODUCTS INC
AVRO 2019-01-04 AVROBIO INC
AVT 2019-01-04 AVNET INC
AVX 2019-01-04 AVX CORP
AVXL 2019-01-04 ANAVEX LIFE SCIENCES CORP
AVY 2019-01-04 AVERY DENNISON CORP
AVYA 2019-01-04 AVAYA HOLDINGS CORP
AWF 2019-01-04 ALLIANCEBERNSTEIN GL HI INC
AWI 2019-01-04 ARMSTRONG WORLD INDUSTRIES
AWK 2019-01-04 AMERICAN WATER WORKS CO INC
AWP 2019-01-04 ABERDEEN GLBL PREM PROP
AWR 2019-01-04 AMERICAN STATES WATER CO
AWRE 2019-01-04 AWARE INC/MASS
AWSM 2019-01-04 COOL HOLDINGS INC
AWX 2019-01-04 AVALON HOLDINGS CORP-A
AX 2019-01-04 AXOS FINANCIAL INC
AXAS 2019-01-04 ABRAXAS PETROLEUM CORP
AXDX 2019-01-04 ACCELERATE DIAGNOSTICS INC
AXE 2019-01-04 ANIXTER INTERNATIONAL INC
AXGN 2019-01-04 AXOGEN INC
AXJL 2019-01-04 WISDOMTREE ASIA-PACIFIC EX-J
AXJV 2019-01-04 ISHARES EDGE MSCI MIN VOL AS
AXL 2019-01-04 AMERICAN AXLE & MFG HOLDINGS
AXNX 2019-01-04 AXONICS MODULATION TECHNOLOG
AXO 2019-01-04
AXON 2019-01-04 AXOVANT SCIENCES LTD
AXP 2019-01-04 AMERICAN EXPRESS CO
AXR 2019-01-04 AMREP CORP
AXS 2019-01-04 AXIS CAPITAL HOLDINGS LTD
AXS-D 2019-01-04
AXS-E 2019-01-04
AXSM 2019-01-04 AXSOME THERAPEUTICS INC
AXTA 2019-01-04 AXALTA COATING SYSTEMS LTD
AXTI 2019-01-04 AXT INC
AXU 2019-01-04 ALEXCO RESOURCE CORP
AY 2019-01-04 ATLANTICA YIELD PLC
AYI 2019-01-04 ACUITY BRANDS INC
AYR 2019-01-04 AIRCASTLE LTD
AYTU 2019-01-04 AYTU BIOSCIENCE INC
AYX 2019-01-04 ALTERYX INC - CLASS A
AZN 2019-01-04 ASTRAZENECA PLC-SPONS ADR
performance beginner php file-system api
$endgroup$
add a comment |
$begingroup$
Functionality:
This script uses ~80 URL requests and writes ~8000 arrays to a file (~50Mb-150Mb).
Performance:
The only goal is making this script as fast/efficient (performance) as possible. There are alternative methods (such as relevant question), which I'm not sure how to implement. Would you be so kind and review my modified working code?
Alternative getSymbols()
:
public static function getSymbols() {
return array_map(function($line){ return str_getcsv($line, "t"); }, file(__DIR__ . self::SYMBOLS_PATH));
}
Entire Modified Code (Version II):
// local server and live
if($_SERVER['LOGNAME']==="NAME_OF_LOGNAME_GOES_HERE"){
error_reporting(E_ALL);
}else{
error_reporting(0);
}
date_default_timezone_set("UTC");
ini_set('max_execution_time' , 0);
ini_set('memory_limit','-1');
set_time_limit(0);
EquityRecords::allEquitiesSignleJSON(new EquityRecords());
Class EquityRecords
{
const NUMBER_OF_STOCKS_PER_REQUEST = 100;
const NEW_LINE = "n";
/**
*
* @var a string of iextrading symbols
*/
const SYMBOLS_PATH = '/../../config/z-iextrading-symbs.md';
/**
*
* @var a string of our symbols json directory
*/
const SYMBOLS_DIR = "/../../data/equities/real-time-60sec/z-raw-equilibrium-estimation";
/**
*
* @var a string of target path and query
*/
const TARGET_QUERY = "stock/market/batch?symbols=";
/**
*
* @var a string of iextrading base URL
*/
const BASE_URL = "https://api.iextrading.com/1.0/";
/**
*
* @var a string of iextrading end point
*/
const END_POINT = "&types=quote,chart&range=1m&last=10";
/**
*
* @var an integer for maximum number of stocks per URL on each call
*/
//***************** A ********************** //
// public static function getSymbols() {
// return array_map(function($line){ return str_getcsv($line, "t"); }, file(__DIR__ . self::SYMBOLS_PATH));
// }
public static function getSymbols(){
//***************** START: ALL SYMBOLS ARRAY ********************** //
// var: is a filename path directory, where there is an md file with list of equities
$list_of_equities_file= __DIR__ . self::SYMBOLS_PATH;
// var: is content of md file with list of equities
$content_of_equities= file_get_contents($list_of_equities_file);
// var is an array(3) of equities such as: string(4) "ZYNE", string(10) "2019-01-04", string(27) "ZYNERBA PHARMACEUTICALS INC"
// $symbols_array=preg_split('/rn|r|n/', $content_of_equities);
$symbols_array=preg_split('/R/', $content_of_equities);
//***************** END: ALL SYMBOLS ARRAY ********************** //
// child and mother arrays are created to help calling equities in batches of 100, which seems to be the API limit.
$child=array();
$mother=array();
// var: is 100 counter
$limit_counter=self::NUMBER_OF_STOCKS_PER_REQUEST;
foreach ($symbols_array as $ticker_arr){
$limit_counter=$limit_counter-1;
$symbols_array=preg_split('/t/', $ticker_arr);
array_push($child,$symbols_array);
if($limit_counter<=0){
$limit_counter=self::NUMBER_OF_STOCKS_PER_REQUEST;
array_push($mother, $child);
$child=array();
}
}
return $mother;
}
public static function allEquitiesSignleJSON(){
$equity_arrays=EquityRecords::getSymbols();
$base_url=self::BASE_URL.self::TARGET_QUERY;
$current_time=date("Y-m-d-H-i-s");
$all_equities=array();
// ticker: AAPL, GE, AMD
foreach ($equity_arrays as $ticker_arr) {
$ticker=array_column($ticker_arr, 0);
$equity_url=$base_url . implode("%2C", $ticker) . self::END_POINT;
$raw_eauity_json=file_get_contents($equity_url);
$raw_equity_array=json_decode($raw_eauity_json, true);
$all_equities=array_merge($all_equities, $raw_equity_array);
}
$all_equities_json=json_encode($all_equities);
$symbols_dir= __DIR__ . self::SYMBOLS_DIR;
if (!is_dir($symbols_dir)) {mkdir($symbols_dir, 0755,true);}
$raw_equity_file=$symbols_dir . "/" . $current_time . ".json";
$fp=fopen($raw_equity_file, "x+");
fwrite($fp, $all_equities_json);
fclose($fp);
echo "YAAAY! Equity JSON file success at " . __METHOD__ . " ! 💚 " . self::NEW_LINE;
}
}
Sample CSV:
AAPL 2019-01-04 APPLE INC
AAT 2019-01-04 AMERICAN ASSETS TRUST INC
AAU 2019-01-04 ALMADEN MINERALS LTD - B
AAWW 2019-01-04 ATLAS AIR WORLDWIDE HOLDINGS
AAXJ 2019-01-04 ISHARES MSCI ALL COUNTRY ASI
AAXN 2019-01-04 AXON ENTERPRISE INC
AB 2019-01-04 ALLIANCEBERNSTEIN HOLDING LP
ABAC 2019-01-04 RENMIN TIANLI GROUP INC
ABB 2019-01-04 ABB LTD-SPON ADR
ABBV 2019-01-04 ABBVIE INC
ABC 2019-01-04 AMERISOURCEBERGEN CORP
ABCB 2019-01-04 AMERIS BANCORP
ABDC 2019-01-04 ALCENTRA CAPITAL CORP
ABEO 2019-01-04 ABEONA THERAPEUTICS INC
ABEOW 2019-01-04
ABEV 2019-01-04 AMBEV SA-ADR
ABG 2019-01-04 ASBURY AUTOMOTIVE GROUP
ABIL 2019-01-04 ABILITY INC
ABIO 2019-01-04 ARCA BIOPHARMA INC
ABM 2019-01-04 ABM INDUSTRIES INC
ABMD 2019-01-04 ABIOMED INC
ABR 2019-01-04 ARBOR REALTY TRUST INC
ABR-A 2019-01-04
ABR-B 2019-01-04
ABR-C 2019-01-04
ABT 2019-01-04 ABBOTT LABORATORIES
ABTX 2019-01-04 ALLEGIANCE BANCSHARES INC
ABUS 2019-01-04 ARBUTUS BIOPHARMA CORP
AC 2019-01-04 ASSOCIATED CAPITAL GROUP - A
ACA 2019-01-04 ARCOSA INC
ACAD 2019-01-04 ACADIA PHARMACEUTICALS INC
ACB 2019-01-04 AURORA CANNABIS INC
ACBI 2019-01-04 ATLANTIC CAPITAL BANCSHARES
ACC 2019-01-04 AMERICAN CAMPUS COMMUNITIES
ACCO 2019-01-04 ACCO BRANDS CORP
ACER 2019-01-04 ACER THERAPEUTICS INC
ACES 2019-01-04 ALPS CLEAN ENERGY ETF
ACET 2019-01-04 ACETO CORP
ACGL 2019-01-04 ARCH CAPITAL GROUP LTD
ACGLO 2019-01-04
ACGLP 2019-01-04
ACH 2019-01-04 ALUMINUM CORP OF CHINA-ADR
ACHC 2019-01-04 ACADIA HEALTHCARE CO INC
ACHN 2019-01-04 ACHILLION PHARMACEUTICALS
ACHV 2019-01-04 ACHIEVE LIFE SCIENCES INC
ACIA 2019-01-04 ACACIA COMMUNICATIONS INC
ACIM 2019-01-04 SPDR MSCI ACWI IMI ETF
ACIU 2019-01-04 AC IMMUNE SA
ACIW 2019-01-04 ACI WORLDWIDE INC
ACLS 2019-01-04 AXCELIS TECHNOLOGIES INC
ACM 2019-01-04 AECOM
ACMR 2019-01-04 ACM RESEARCH INC-CLASS A
ACN 2019-01-04 ACCENTURE PLC-CL A
ACNB 2019-01-04 ACNB CORP
ACOR 2019-01-04 ACORDA THERAPEUTICS INC
ACP 2019-01-04 ABERDEEN INCOME CREDIT STRAT
ACRE 2019-01-04 ARES COMMERCIAL REAL ESTATE
ACRS 2019-01-04 ACLARIS THERAPEUTICS INC
ACRX 2019-01-04 ACELRX PHARMACEUTICALS INC
ACSG 2019-01-04 XTRACKERS MSCI ACWI EX USA E
ACSI 2019-01-04 AMERICAN CUSTOMER SATISFACTI
ACST 2019-01-04 ACASTI PHARMA INC
ACT 2019-01-04 ADVISORSHARES VICE ETF
ACTG 2019-01-04 ACACIA RESEARCH CORP
ACU 2019-01-04 ACME UNITED CORP
ACV 2019-01-04 ALLIANZGI DIVERSIFIED INCOME
ACWF 2019-01-04 ISHARES EDGE MSCI MULTIFACTO
ACWI 2019-01-04 ISHARES MSCI ACWI ETF
ACWV 2019-01-04 ISHARES EDGE MSCI MIN VOL GL
ACWX 2019-01-04 ISHARES MSCI ACWI EX US ETF
ACY 2019-01-04 AEROCENTURY CORP
ADAP 2019-01-04 ADAPTIMMUNE THERAPEUTICS-ADR
ADBE 2019-01-04 ADOBE INC
ADC 2019-01-04 AGREE REALTY CORP
ADES 2019-01-04 ADVANCED EMISSIONS SOLUTIONS
ADI 2019-01-04 ANALOG DEVICES INC
ADIL 2019-01-04 ADIAL PHARMACEUTICALS INC
ADILW 2019-01-04
ADM 2019-01-04 ARCHER-DANIELS-MIDLAND CO
ADMA 2019-01-04 ADMA BIOLOGICS INC
ADMP 2019-01-04 ADAMIS PHARMACEUTICALS CORP
ADMS 2019-01-04 ADAMAS PHARMACEUTICALS INC
ADNT 2019-01-04 ADIENT PLC
ADOM 2019-01-04 ADOMANI INC
ADP 2019-01-04 AUTOMATIC DATA PROCESSING
ADRA 2019-01-04 INVESCO BLDRS ASIA 50 ADR IN
ADRD 2019-01-04 INVESCO BLDRS DEVELOPED MARK
ADRE 2019-01-04 INVESCO BLDRS EMERGING MARKE
ADRO 2019-01-04 ADURO BIOTECH INC
ADRU 2019-01-04 INVESCO BLDRS EUROPE SELECT
ADS 2019-01-04 ALLIANCE DATA SYSTEMS CORP
ADSK 2019-01-04 AUTODESK INC
ADSW 2019-01-04 ADVANCED DISPOSAL SERVICES I
ADT 2019-01-04 ADT INC
ADTN 2019-01-04 ADTRAN INC
ADUS 2019-01-04 ADDUS HOMECARE CORP
ADVM 2019-01-04 ADVERUM BIOTECHNOLOGIES INC
ADX 2019-01-04 ADAMS DIVERSIFIED EQUITY
ADXS 2019-01-04 ADVAXIS INC
AE 2019-01-04 ADAMS RESOURCES & ENERGY INC
AEB 2019-01-04
AED 2019-01-04
AEE 2019-01-04 AMEREN CORPORATION
AEF 2019-01-04 ABERDEEN EM MRKT EQTY INC
AEG 2019-01-04 AEGON N.V.-NY REG SHR
AEGN 2019-01-04 AEGION CORP
AEH 2019-01-04
AEHR 2019-01-04 AEHR TEST SYSTEMS
AEIS 2019-01-04 ADVANCED ENERGY INDUSTRIES
AEL 2019-01-04 AMERICAN EQUITY INVT LIFE HL
AEM 2019-01-04 AGNICO EAGLE MINES LTD
AEMD 2019-01-04 AETHLON MEDICAL INC
AEO 2019-01-04 AMERICAN EAGLE OUTFITTERS
AEP 2019-01-04 AMERICAN ELECTRIC POWER
AER 2019-01-04 AERCAP HOLDINGS NV
AERI 2019-01-04 AERIE PHARMACEUTICALS INC
AES 2019-01-04 AES CORP
AETI 2019-01-04 AMERICAN ELECTRIC TECHNOLOGI
AEY 2019-01-04 ADDVANTAGE TECHNOLOGIES GRP
AEYE 2019-01-04 AUDIOEYE INC
AEZS 2019-01-04 AETERNA ZENTARIS INC
AFB 2019-01-04 ALLIANCE NATIONAL MUNI INC
AFC 2019-01-04
AFG 2019-01-04 AMERICAN FINANCIAL GROUP INC
AFGE 2019-01-04
AFGH 2019-01-04
AFH 2019-01-04 ATLAS FINANCIAL HOLDINGS INC
AFHBL 2019-01-04
AFI 2019-01-04 ARMSTRONG FLOORING INC
AFIF 2019-01-04 ANFIELD UNIVERSAL FIXED INCO
AFIN 2019-01-04 AMERICAN FINANCE TRUST INC
AFK 2019-01-04 VANECK VECTORS AFRICA INDEX
AFL 2019-01-04 AFLAC INC
AFMD 2019-01-04 AFFIMED NV
AFSI-A 2019-01-04
AFSI-B 2019-01-04
AFSI-C 2019-01-04
AFSI-D 2019-01-04
AFSI-E 2019-01-04
AFSI-F 2019-01-04
AFSS 2019-01-04
AFST 2019-01-04
AFT 2019-01-04 APOLLO SENIOR FLOATING RATE
AFTY 2019-01-04 CSOP FTSE CHINA A50 ETF
AG 2019-01-04 FIRST MAJESTIC SILVER CORP
AGCO 2019-01-04 AGCO CORP
AGD 2019-01-04 ABERDEEN GLBL DYN DIVID
AGE 2019-01-04 AGEX THERAPEUTICS INC
AGEN 2019-01-04 AGENUS INC
AGF 2019-01-04 DB AGRICULTURE LONG ETN
AGFS 2019-01-04 AGROFRESH SOLUTIONS INC
AGFSW 2019-01-04
AGG 2019-01-04 ISHARES CORE U.S. AGGREGATE
AGGE 2019-01-04 IQ ENHANCED CORE BOND US ETF
AGGP 2019-01-04 IQ ENHANCED CORE PLUS BOND U
AGGY 2019-01-04 WISDOMTREE YIELD ENHANCED US
AGI 2019-01-04 ALAMOS GOLD INC-CLASS A
AGIO 2019-01-04 AGIOS PHARMACEUTICALS INC
AGLE 2019-01-04 AEGLEA BIOTHERAPEUTICS INC
AGM 2019-01-04 FEDERAL AGRIC MTG CORP-CL C
AGM-A 2019-01-04
AGM-B 2019-01-04
AGM-C 2019-01-04
AGM.A 2019-01-04 FEDERAL AGRIC MTG CORP-CL A
AGMH 2019-01-04 AGM GROUP HOLDINGS INC
AGN 2019-01-04 ALLERGAN PLC
AGNC 2019-01-04 AGNC INVESTMENT CORP
AGNCB 2019-01-04
AGNCN 2019-01-04
AGND 2019-01-04 WISDOMTREE TRUST WISDOMTREE
AGO 2019-01-04 ASSURED GUARANTY LTD
AGO-B 2019-01-04
AGO-E 2019-01-04
AGO-F 2019-01-04
AGQ 2019-01-04 PROSHARES ULTRA SILVER
AGR 2019-01-04 AVANGRID INC
AGRO 2019-01-04 ADECOAGRO SA
AGRX 2019-01-04 AGILE THERAPEUTICS INC
AGS 2019-01-04 PLAYAGS INC
AGT 2019-01-04 ISHARES ARGENTINA
AGTC 2019-01-04 APPLIED GENETIC TECHNOLOGIES
AGX 2019-01-04 ARGAN INC
AGYS 2019-01-04 AGILYSYS INC
AGZ 2019-01-04 ISHARES AGENCY BOND ETF
AGZD 2019-01-04 WISDOMTREE TRUST WISDOMTREE
AHC 2019-01-04 A H BELO CORP-A
AHH 2019-01-04 ARMADA HOFFLER PROPERTIES IN
AHL 2019-01-04 ASPEN INSURANCE HOLDINGS LTD
AHL-C 2019-01-04
AHL-D 2019-01-04
AHPI 2019-01-04 ALLIED HEALTHCARE PRODUCTS
AHT 2019-01-04 ASHFORD HOSPITALITY TRUST
AHT-D 2019-01-04
AHT-F 2019-01-04
AHT-G 2019-01-04
AHT-H 2019-01-04
AHT-I 2019-01-04
AI 2019-01-04 ARLINGTON ASSET INVESTMENT-A
AI-B 2019-01-04
AIA 2019-01-04 ISHARES ASIA 50 ETF
AIC 2019-01-04
AIEQ 2019-01-04 AI POWERED EQUITY ETF
AIF 2019-01-04 APOLLO TACTICAL INCOME FUND
AIG 2019-01-04 AMERICAN INTERNATIONAL GROUP
AIG+ 2019-01-04
AIHS 2019-01-04 SENMIAO TECHNOLOGY LTD
AIIQ 2019-01-04 AI POWERED INTERNATIONAL EQU
AIMC 2019-01-04 ALTRA INDUSTRIAL MOTION CORP
AIMT 2019-01-04 AIMMUNE THERAPEUTICS INC
AIN 2019-01-04 ALBANY INTL CORP-CL A
AINC 2019-01-04 ASHFORD INC
AINV 2019-01-04 APOLLO INVESTMENT CORP
AIPT 2019-01-04 PRECISION THERAPEUTICS INC
AIQ 2019-01-04 Global X Future Analytics TE
AIR 2019-01-04 AAR CORP
AIRG 2019-01-04 AIRGAIN INC
AIRI 2019-01-04 AIR INDUSTRIES GROUP
AIRR 2019-01-04 FIRST TRUST RBA AMERICAN IND
AIRT 2019-01-04 AIR T INC
AIT 2019-01-04 APPLIED INDUSTRIAL TECH INC
AIV 2019-01-04 APARTMENT INVT & MGMT CO -A
AIV-A 2019-01-04
AIW 2019-01-04
AIY 2019-01-04
AIZ 2019-01-04 ASSURANT INC
AIZP 2019-01-04
AJG 2019-01-04 ARTHUR J GALLAGHER & CO
AJRD 2019-01-04 AEROJET ROCKETDYNE HOLDINGS
AJX 2019-01-04 GREAT AJAX CORP
AJXA 2019-01-04
AKAM 2019-01-04 AKAMAI TECHNOLOGIES INC
AKAO 2019-01-04 ACHAOGEN INC
AKBA 2019-01-04 AKEBIA THERAPEUTICS INC
AKCA 2019-01-04 AKCEA THERAPEUTICS INC
AKER 2019-01-04 AKERS BIOSCIENCES INC
AKG 2019-01-04 ASANKO GOLD INC
AKO.A 2019-01-04 EMBOTELLADORA ANDINA-ADR A
AKO.B 2019-01-04 EMBOTELLADORA ANDINA-ADR B
AKP 2019-01-04 ALLIANCE CALIF MUNI INCOME
AKR 2019-01-04 ACADIA REALTY TRUST
AKRX 2019-01-04 AKORN INC
AKS 2019-01-04 AK STEEL HOLDING CORP
AKTS 2019-01-04 AKOUSTIS TECHNOLOGIES INC
AKTX 2019-01-04 AKARI THERAPEUTICS PLC-ADR
AL 2019-01-04 AIR LEASE CORP
ALAC 2019-01-04 ALBERTON ACQUISITION CORP
ALACR 2019-01-04 ALBERTON ACQUISITION CO-RTS
ALACU 2019-01-04 ALBERTON ACQUISITION CORP
ALACW 2019-01-04
ALB 2019-01-04 ALBEMARLE CORP
ALBO 2019-01-04 ALBIREO PHARMA INC
ALCO 2019-01-04 ALICO INC
ALD 2019-01-04 WISDOMTREE ASIA LOCAL DEBT
ALDR 2019-01-04 ALDER BIOPHARMACEUTICALS INC
ALDX 2019-01-04 ALDEYRA THERAPEUTICS INC
ALE 2019-01-04 ALLETE INC
ALEX 2019-01-04 ALEXANDER & BALDWIN INC
ALFA 2019-01-04 ALPHACLONE ALTERNATIVE ALPHA
ALG 2019-01-04 ALAMO GROUP INC
ALGN 2019-01-04 ALIGN TECHNOLOGY INC
ALGR 2019-01-04 ALLEGRO MERGER CORP
ALGRR 2019-01-04 ALLEGRO MERGER CORP-RTS
ALGRU 2019-01-04 ALLEGRO MERGER CORP
ALGRW 2019-01-04
ALGT 2019-01-04 ALLEGIANT TRAVEL CO
ALIM 2019-01-04 ALIMERA SCIENCES INC
ALJJ 2019-01-04 ALJ REGIONAL HOLDINGS INC
ALK 2019-01-04 ALASKA AIR GROUP INC
ALKS 2019-01-04 ALKERMES PLC
ALL 2019-01-04 ALLSTATE CORP
ALL-A 2019-01-04
ALL-B 2019-01-04
ALL-D 2019-01-04
ALL-E 2019-01-04
ALL-F 2019-01-04
ALL-G 2019-01-04
ALLE 2019-01-04 ALLEGION PLC
ALLK 2019-01-04 ALLAKOS INC
ALLO 2019-01-04 ALLOGENE THERAPEUTICS INC
ALLT 2019-01-04 ALLOT COMMUNICATIONS LTD
ALLY 2019-01-04 ALLY FINANCIAL INC
ALLY-A 2019-01-04
ALNA 2019-01-04 ALLENA PHARMACEUTICALS INC
ALNY 2019-01-04 ALNYLAM PHARMACEUTICALS INC
ALO 2019-01-04 ALIO GOLD INC
ALOT 2019-01-04 ASTRONOVA INC
ALP-Q 2019-01-04
ALPN 2019-01-04 ALPINE IMMUNE SCIENCES INC
ALQA 2019-01-04 ALLIQUA BIOMEDICAL INC
ALRM 2019-01-04 ALARM.COM HOLDINGS INC
ALRN 2019-01-04 AILERON THERAPEUTICS INC
ALSK 2019-01-04 ALASKA COMM SYSTEMS GROUP
ALSN 2019-01-04 ALLISON TRANSMISSION HOLDING
ALT 2019-01-04 ALTIMMUNE INC
ALTM 2019-01-04 ALTUS MIDSTREAM CO -A
ALTR 2019-01-04 ALTAIR ENGINEERING INC - A
ALTS 2019-01-04 PRSHR MRNGSTR ALT SOL ETF
ALTY 2019-01-04 GLOBAL X SUPERDIVIDEND ALTER
ALV 2019-01-04 AUTOLIV INC
ALX 2019-01-04 ALEXANDER'S INC
ALXN 2019-01-04 ALEXION PHARMACEUTICALS INC
ALYA 2019-01-04 ALITHYA GROUP INC-CLASS A
ALZH 2019-01-04 ALZHEON INC
AM 2019-01-04 ANTERO MIDSTREAM PARTNERS LP
AMAG 2019-01-04 AMAG PHARMACEUTICALS INC
AMAL 2019-01-04 AMALGAMATED BK OF NEW YORK-A
AMAT 2019-01-04 APPLIED MATERIALS INC
AMBA 2019-01-04 AMBARELLA INC
AMBC 2019-01-04 AMBAC FINANCIAL GROUP INC
AMBCW 2019-01-04
AMBO 2019-01-04 AMBOW EDUCATION HOLDING-ADR
AMBR 2019-01-04 AMBER ROAD INC
AMC 2019-01-04 AMC ENTERTAINMENT HLDS-CL A
AMCA 2019-01-04 ISHARES RUSSELL 1000 US REV
AMCI 2019-01-04 AMCI ACQUISITION CORP-CL A
AMCIU 2019-01-04 AMCI ACQUISITION CORP
AMCIW 2019-01-04
AMCN 2019-01-04 AIRMEDIA GROUP INC-ADR
AMCX 2019-01-04 AMC NETWORKS INC-A
AMD 2019-01-04 ADVANCED MICRO DEVICES
AME 2019-01-04 AMETEK INC
AMED 2019-01-04 AMEDISYS INC
AMEH 2019-01-04 APOLLO MEDICAL HOLDINGS INC
AMG 2019-01-04 AFFILIATED MANAGERS GROUP
AMGN 2019-01-04 AMGEN INC
AMGP 2019-01-04 ANTERO MIDSTREAM GP LP
AMH 2019-01-04 AMERICAN HOMES 4 RENT- A
AMH-D 2019-01-04
AMH-E 2019-01-04
AMH-F 2019-01-04
AMH-G 2019-01-04
AMH-H 2019-01-04
AMID 2019-01-04 AMERICAN MIDSTREAM PARTNERS
AMJ 2019-01-04 JPMORGAN ALERIAN MLP INDEX
AMJL 2019-01-04 X-LINKS 2XLEVRG ALERIAN MLP
AMKR 2019-01-04 AMKOR TECHNOLOGY INC
AMLP 2019-01-04 ALERIAN MLP ETF
AMMA 2019-01-04 ALLIANCE MMA INC
AMN 2019-01-04 AMN HEALTHCARE SERVICES INC
AMNB 2019-01-04 AMER NATL BNKSHS/DANVILLE VA
AMOT 2019-01-04 ALLIED MOTION TECHNOLOGIES
AMOV 2019-01-04 AMERICA MOVIL-ADR SERIES A
AMP 2019-01-04 AMERIPRISE FINANCIAL INC
AMPE 2019-01-04 AMPIO PHARMACEUTICALS INC
AMPH 2019-01-04 AMPHASTAR PHARMACEUTICALS IN
AMR 2019-01-04 ALTA MESA RESOURCES INC-A
AMRB 2019-01-04 AMERICAN RIVER BANKSHRS (CA)
AMRC 2019-01-04 AMERESCO INC-CL A
AMRH 2019-01-04 AMERI HOLDINGS INC
AMRHW 2019-01-04
AMRK 2019-01-04 A-MARK PRECIOUS METALS INC
AMRN 2019-01-04 AMARIN CORP PLC -ADR
AMRS 2019-01-04 AMYRIS INC
AMRWW 2019-01-04
AMRX 2019-01-04 AMNEAL PHARMACEUTICALS INC
AMS 2019-01-04 AMERICAN SHARED HOSPITAL SER
AMSC 2019-01-04 AMERICAN SUPERCONDUCTOR CORP
AMSF 2019-01-04 AMERISAFE INC
AMSWA 2019-01-04 AMERICAN SOFTWARE INC-CL A
AMT 2019-01-04 AMERICAN TOWER CORP
AMTB 2019-01-04 MERCANTIL BANK HOLDING COR-A
AMTBB 2019-01-04 MERCANTIL BANK HOLDING COR-B
AMTD 2019-01-04 TD AMERITRADE HOLDING CORP
AMTX 2019-01-04 AEMETIS INC
AMU 2019-01-04 ETRACS ALERIAN MLP ETN
AMUB 2019-01-04 ETRACS ALERIAN MLP IND SER B
AMWD 2019-01-04 AMERICAN WOODMARK CORP
AMX 2019-01-04 AMERICA MOVIL-SPN ADR CL L
AMZA 2019-01-04 INFRACAP MLP ETF
AMZN 2019-01-04 AMAZON.COM INC
AN 2019-01-04 AUTONATION INC
ANAB 2019-01-04 ANAPTYSBIO INC
ANAT 2019-01-04 AMERICAN NATIONAL INSURANCE
ANCX 2019-01-04 ACCESS NATIONAL CORP
ANDE 2019-01-04 ANDERSONS INC/THE
ANDX 2019-01-04 ANDEAVOR LOGISTICS LP
ANET 2019-01-04 ARISTA NETWORKS INC
ANF 2019-01-04 ABERCROMBIE & FITCH CO-CL A
ANFI 2019-01-04 AMIRA NATURE FOODS LTD
ANGI 2019-01-04 ANGI HOMESERVICES INC- A
ANGL 2019-01-04 VANECK VECTORS FALLEN ANGEL
ANGO 2019-01-04 ANGIODYNAMICS INC
ANH 2019-01-04 ANWORTH MORTGAGE ASSET CORP
ANH-A 2019-01-04
ANH-B 2019-01-04
ANH-C 2019-01-04
ANIK 2019-01-04 ANIKA THERAPEUTICS INC
ANIP 2019-01-04 ANI PHARMACEUTICALS INC
ANIX 2019-01-04 ANIXA BIOSCIENCES INC
ANSS 2019-01-04 ANSYS INC
ANTM 2019-01-04 ANTHEM INC
ANY 2019-01-04 SPHERE 3D CORP
AOA 2019-01-04 ISHARES CORE AGGRESSIVE ALLO
AOBC 2019-01-04 AMERICAN OUTDOOR BRANDS CORP
AOD 2019-01-04 ABERDEEN TTL DYN DIVID
AOK 2019-01-04 ISHARES CORE CONSERVATIVE AL
AOM 2019-01-04 ISHARES CORE MODERATE ALLOCA
AON 2019-01-04 AON PLC
AOR 2019-01-04 ISHARES CORE GROWTH ALLOCATI
AOS 2019-01-04 SMITH (A.O.) CORP
AOSL 2019-01-04 ALPHA & OMEGA SEMICONDUCTOR
AP 2019-01-04 AMPCO-PITTSBURGH CORP
APA 2019-01-04 APACHE CORP
APAM 2019-01-04 ARTISAN PARTNERS ASSET MA -A
APB 2019-01-04 ASIA PACIFIC FUND INC
APC 2019-01-04 ANADARKO PETROLEUM CORP
APD 2019-01-04 AIR PRODUCTS & CHEMICALS INC
APDN 2019-01-04 APPLIED DNA SCIENCES INC
APDNW 2019-01-04
APEI 2019-01-04 AMERICAN PUBLIC EDUCATION
APEN 2019-01-04 APOLLO ENDOSURGERY INC
APF 2019-01-04 MORGAN STANLEY ASIA PACIFIC
APH 2019-01-04 AMPHENOL CORP-CL A
APHA 2019-01-04 APHRIA INC
APHB 2019-01-04 AMPLIPHI BIOSCIENCES CORP
APLE 2019-01-04 APPLE HOSPITALITY REIT INC
APLS 2019-01-04 APELLIS PHARMACEUTICALS INC
APM 2019-01-04 APTORUM GROUP LTD-CLASS A
APO 2019-01-04 APOLLO GLOBAL MANAGEMENT - A
APO-A 2019-01-04
APO-B 2019-01-04
APOG 2019-01-04 APOGEE ENTERPRISES INC
APOP 2019-01-04 CELLECT BIOTECHNOLOGY LT-ADR
APOPW 2019-01-04
APPF 2019-01-04 APPFOLIO INC - A
APPN 2019-01-04 APPIAN CORP
APPS 2019-01-04 DIGITAL TURBINE INC
APRI 2019-01-04 APRICUS BIOSCIENCES INC
APRN 2019-01-04 BLUE APRON HOLDINGS INC-A
APT 2019-01-04 ALPHA PRO TECH LTD
APTI 2019-01-04 APPTIO INC - CLASS A
APTO 2019-01-04 APTOSE BIOSCIENCES INC
APTS 2019-01-04 PREFERRED APARTMENT COMMUN-A
APTV 2019-01-04 APTIV PLC
APTX 2019-01-04 APTINYX INC
APU 2019-01-04 AMERIGAS PARTNERS-LP
APVO 2019-01-04 APTEVO THERAPEUTICS INC
APWC 2019-01-04 ASIA PACIFIC WIRE & CABLE
APY 2019-01-04 APERGY CORP
APYX 2019-01-04 APYX MEDICAL CORP
AQ 2019-01-04 AQUANTIA CORP
AQB 2019-01-04 AQUABOUNTY TECHNOLOGIES
AQMS 2019-01-04 AQUA METALS INC
AQN 2019-01-04 ALGONQUIN POWER & UTILITIES
AQNA 2019-01-04
AQST 2019-01-04 AQUESTIVE THERAPEUTICS INC
AQUA 2019-01-04 EVOQUA WATER TECHNOLOGIES CO
AQXP 2019-01-04 AQUINOX PHARMACEUTICALS INC
AR 2019-01-04 ANTERO RESOURCES CORP
ARA 2019-01-04 AMERICAN RENAL ASSOCIATES HO
ARAV 2019-01-04 ARAVIVE INC
ARAY 2019-01-04 ACCURAY INC
ARC 2019-01-04 ARC DOCUMENT SOLUTIONS INC
ARCB 2019-01-04 ARCBEST CORP
ARCC 2019-01-04 ARES CAPITAL CORP
ARCE 2019-01-04 ARCO PLATFORM LTD - CLASS A
ARCH 2019-01-04 ARCH COAL INC - A
ARCI 2019-01-04 APPLIANCE RECYCLING CTRS AMR
ARCM 2019-01-04 ARROW RESERVE CAP MANAG ETF
ARCO 2019-01-04 ARCOS DORADOS HOLDINGS INC-A
ARCT 2019-01-04 ARCTURUS THERAPEUTICS LTD
ARCW 2019-01-04 ARC GROUP WORLDWIDE INC
ARD 2019-01-04 ARDAGH GROUP SA
ARDC 2019-01-04 ARES DYNAMIC CREDIT ALLOCATI
ARDM 2019-01-04 ARADIGM CORP
ARDS 2019-01-04 ARIDIS PHARMACEUTICALS INC
ARDX 2019-01-04 ARDELYX INC
ARE 2019-01-04 ALEXANDRIA REAL ESTATE EQUIT
ARE-D 2019-01-04
ARES 2019-01-04 ARES MANAGEMENT CORP - A
ARES-A 2019-01-04
AREX 2019-01-04 APPROACH RESOURCES INC
ARGD 2019-01-04
ARGO 2019-01-04 ARGO GROUP INTERNATIONAL
ARGT 2019-01-04 GLOBAL X MSCI ARGENTINA ETF
ARGX 2019-01-04 ARGENX SE - ADR
ARI 2019-01-04 APOLLO COMMERCIAL REAL ESTAT
ARI-C 2019-01-04
ARKG 2019-01-04 ARK GENOMIC REVL MULT-SECTOR
ARKK 2019-01-04 ARK INNOVATION ETF
ARKQ 2019-01-04 ARK INDUSTRIAL INNOVATION
ARKR 2019-01-04 ARK RESTAURANTS CORP
ARKW 2019-01-04 ARK WEB X.O ETF
ARL 2019-01-04 AMERICAN REALTY INVESTORS IN
ARLO 2019-01-04 ARLO TECHNOLOGIES INC
ARLP 2019-01-04 ALLIANCE RESOURCE PARTNERS
ARMK 2019-01-04 ARAMARK
ARNA 2019-01-04 ARENA PHARMACEUTICALS INC
ARNC 2019-01-04 ARCONIC INC
ARNC- 2019-01-04
AROC 2019-01-04 ARCHROCK INC
AROW 2019-01-04 ARROW FINANCIAL CORP
ARPO 2019-01-04 AERPIO PHARMACEUTICALS INC
ARQL 2019-01-04 ARQULE INC
ARR 2019-01-04 ARMOUR RESIDENTIAL REIT INC
ARR-A 2019-01-04
ARR-B 2019-01-04
ARRS 2019-01-04 ARRIS INTERNATIONAL PLC
ARRY 2019-01-04 ARRAY BIOPHARMA INC
ARTNA 2019-01-04 ARTESIAN RESOURCES CORP-CL A
ARTW 2019-01-04 ART'S-WAY MANUFACTURING CO
ARTX 2019-01-04 AROTECH CORP
ARVN 2019-01-04 ARVINAS INC
ARW 2019-01-04 ARROW ELECTRONICS INC
ARWR 2019-01-04 ARROWHEAD PHARMACEUTICALS IN
ARYA 2019-01-04 ARYA SCIENCES ACQUISITION-A
ARYAU 2019-01-04 ARYA SCIENCES ACQUISITION CO
ARYAW 2019-01-04
ASA 2019-01-04 ASA GOLD AND PRECIOUS METALS
ASB 2019-01-04 ASSOCIATED BANC-CORP
ASB-C 2019-01-04
ASB-D 2019-01-04
ASB-E 2019-01-04
ASC 2019-01-04 ARDMORE SHIPPING CORP
ASCMA 2019-01-04 ASCENT CAPITAL GROUP INC-A
ASEA 2019-01-04 GLOBAL X FTSE SOUTHEAST ASIA
ASET 2019-01-04 FLEXSHARES REAL ASSETS FUND
ASFI 2019-01-04 ASTA FUNDING INC
ASG 2019-01-04 LIBERTY ALL-STAR GROWTH FD
ASGN 2019-01-04 ASGN INC
ASH 2019-01-04 ASHLAND GLOBAL HOLDINGS INC
ASHR 2019-01-04 XTRACKERS HARVEST CSI 300 CH
ASHS 2019-01-04 XTRACKERS HARVEST CSI 500 CH
ASHX 2019-01-04 XTRACKERS MSCI CHINA A INCLU
ASIX 2019-01-04 ADVANSIX INC
ASLN 2019-01-04 ASLAN PHARMACEUTICALS LT-ADR
ASM 2019-01-04 AVINO SILVER & GOLD MINES
ASMB 2019-01-04 ASSEMBLY BIOSCIENCES INC
ASML 2019-01-04 ASML HOLDING NV-NY REG SHS
ASNA 2019-01-04 ASCENA RETAIL GROUP INC
ASND 2019-01-04 ASCENDIS PHARMA A/S - ADR
ASNS 2019-01-04 ARSANIS INC
ASPN 2019-01-04 ASPEN AEROGELS INC
ASPS 2019-01-04 ALTISOURCE PORTFOLIO SOL
ASPU 2019-01-04 ASPEN GROUP INC
ASR 2019-01-04 GRUPO AEROPORTUARIO SUR-ADR
ASRT 2019-01-04 ASSERTIO THERAPEUTICS INC
ASRV 2019-01-04 AMERISERV FINANCIAL INC
ASRVP 2019-01-04
AST 2019-01-04 ASTERIAS BIOTHERAPEUTICS
ASTC 2019-01-04 ASTROTECH CORP
ASTE 2019-01-04 ASTEC INDUSTRIES INC
ASUR 2019-01-04 ASURE SOFTWARE INC
ASV 2019-01-04 ASV HOLDINGS INC
ASX 2019-01-04 ASE TECHNOLOGY HOLDING -ADR
ASYS 2019-01-04 AMTECH SYSTEMS INC
AT 2019-01-04 ATLANTIC POWER CORP
ATAI 2019-01-04 ATA INC-ADR
ATAX 2019-01-04 AMERICA FIRST MULTIFAMILY IN
ATEC 2019-01-04 ALPHATEC HOLDINGS INC
ATEN 2019-01-04 A10 NETWORKS INC
ATGE 2019-01-04 ADTALEM GLOBAL EDUCATION INC
ATH 2019-01-04 ATHENE HOLDING LTD-CLASS A
ATHM 2019-01-04 AUTOHOME INC-ADR
ATHN 2019-01-04 ATHENAHEALTH INC
ATHX 2019-01-04 ATHERSYS INC
ATI 2019-01-04 ALLEGHENY TECHNOLOGIES INC
ATIS 2019-01-04 ATTIS INDUSTRIES INC
ATISW 2019-01-04
ATKR 2019-01-04 ATKORE INTERNATIONAL GROUP I
ATLC 2019-01-04 ATLANTICUS HOLDINGS CORP
ATLO 2019-01-04 AMES NATIONAL CORP
ATMP 2019-01-04 BARCLAYS ETN+ SELECT MLP ETN
ATNI 2019-01-04 ATN INTERNATIONAL INC
ATNM 2019-01-04 ACTINIUM PHARMACEUTICALS INC
ATNX 2019-01-04 ATHENEX INC
ATO 2019-01-04 ATMOS ENERGY CORP
ATOM 2019-01-04 ATOMERA INC
ATOS 2019-01-04 ATOSSA GENETICS INC
ATR 2019-01-04 APTARGROUP INC
ATRA 2019-01-04 ATARA BIOTHERAPEUTICS INC
ATRC 2019-01-04 ATRICURE INC
ATRI 2019-01-04 ATRION CORPORATION
ATRO 2019-01-04 ASTRONICS CORP
ATRS 2019-01-04 ANTARES PHARMA INC
ATSG 2019-01-04 AIR TRANSPORT SERVICES GROUP
ATTO 2019-01-04 ATENTO SA
ATTU 2019-01-04 ATTUNITY LTD
ATU 2019-01-04 ACTUANT CORP-A
ATUS 2019-01-04 ALTICE USA INC- A
ATV 2019-01-04 ACORN INTERNATIONAL INC-ADR
ATVI 2019-01-04 ACTIVISION BLIZZARD INC
ATXI 2019-01-04 AVENUE THERAPEUTICS INC
AU 2019-01-04 ANGLOGOLD ASHANTI-SPON ADR
AUBN 2019-01-04 AUBURN NATL BANCORPORATION
AUDC 2019-01-04 AUDIOCODES LTD
AUG 2019-01-04 AURYN RESOURCES INC
AUGR 2019-01-04 DEFIANCE FUTURE TECH ETF
AUMN 2019-01-04 GOLDEN MINERALS CO
AUO 2019-01-04 AU OPTRONICS CORP-SPON ADR
AUPH 2019-01-04 AURINIA PHARMACEUTICALS INC
AUSE 2019-01-04 WISDOMTREE AUSTRALIA DIVIDEN
AUSF 2019-01-04 GLOBAL X ADAPTIVE US FACTOR
AUTL 2019-01-04 AUTOLUS THERAPEUTICS PLC
AUTO 2019-01-04 AUTOWEB INC
AUY 2019-01-04 YAMANA GOLD INC
AVA 2019-01-04 AVISTA CORP
AVAL 2019-01-04 GRUPO AVAL ACCIONES Y VALORE
AVAV 2019-01-04 AEROVIRONMENT INC
AVB 2019-01-04 AVALONBAY COMMUNITIES INC
AVCO 2019-01-04 AVALON GLOBOCARE CORP
AVD 2019-01-04 AMERICAN VANGUARD CORP
AVDL 2019-01-04 AVADEL PHARMACEUTICALS PLC
AVEO 2019-01-04 AVEO PHARMACEUTICALS INC
AVGO 2019-01-04 BROADCOM INC
AVGR 2019-01-04 AVINGER INC
AVH 2019-01-04 AVIANCA HOLDINGS SA-SPON ADR
AVID 2019-01-04 AVID TECHNOLOGY INC
AVK 2019-01-04 ADVENT CLAYMORE CVT SEC& INC
AVLR 2019-01-04 AVALARA INC
AVNS 2019-01-04 AVANOS MEDICAL INC
AVNW 2019-01-04 AVIAT NETWORKS INC
AVP 2019-01-04 AVON PRODUCTS INC
AVRO 2019-01-04 AVROBIO INC
AVT 2019-01-04 AVNET INC
AVX 2019-01-04 AVX CORP
AVXL 2019-01-04 ANAVEX LIFE SCIENCES CORP
AVY 2019-01-04 AVERY DENNISON CORP
AVYA 2019-01-04 AVAYA HOLDINGS CORP
AWF 2019-01-04 ALLIANCEBERNSTEIN GL HI INC
AWI 2019-01-04 ARMSTRONG WORLD INDUSTRIES
AWK 2019-01-04 AMERICAN WATER WORKS CO INC
AWP 2019-01-04 ABERDEEN GLBL PREM PROP
AWR 2019-01-04 AMERICAN STATES WATER CO
AWRE 2019-01-04 AWARE INC/MASS
AWSM 2019-01-04 COOL HOLDINGS INC
AWX 2019-01-04 AVALON HOLDINGS CORP-A
AX 2019-01-04 AXOS FINANCIAL INC
AXAS 2019-01-04 ABRAXAS PETROLEUM CORP
AXDX 2019-01-04 ACCELERATE DIAGNOSTICS INC
AXE 2019-01-04 ANIXTER INTERNATIONAL INC
AXGN 2019-01-04 AXOGEN INC
AXJL 2019-01-04 WISDOMTREE ASIA-PACIFIC EX-J
AXJV 2019-01-04 ISHARES EDGE MSCI MIN VOL AS
AXL 2019-01-04 AMERICAN AXLE & MFG HOLDINGS
AXNX 2019-01-04 AXONICS MODULATION TECHNOLOG
AXO 2019-01-04
AXON 2019-01-04 AXOVANT SCIENCES LTD
AXP 2019-01-04 AMERICAN EXPRESS CO
AXR 2019-01-04 AMREP CORP
AXS 2019-01-04 AXIS CAPITAL HOLDINGS LTD
AXS-D 2019-01-04
AXS-E 2019-01-04
AXSM 2019-01-04 AXSOME THERAPEUTICS INC
AXTA 2019-01-04 AXALTA COATING SYSTEMS LTD
AXTI 2019-01-04 AXT INC
AXU 2019-01-04 ALEXCO RESOURCE CORP
AY 2019-01-04 ATLANTICA YIELD PLC
AYI 2019-01-04 ACUITY BRANDS INC
AYR 2019-01-04 AIRCASTLE LTD
AYTU 2019-01-04 AYTU BIOSCIENCE INC
AYX 2019-01-04 ALTERYX INC - CLASS A
AZN 2019-01-04 ASTRAZENECA PLC-SPONS ADR
performance beginner php file-system api
$endgroup$
1
$begingroup$
Could you let your IDE format the code consistently? That would free us from mentioning this boring topic in the code review.
$endgroup$
– Roland Illig
3 hours ago
$begingroup$
@RolandIllig Hi Roland, Thanks for your comment, actually, I'm not a developer/programmer, never used an IDE before. Sometimes, I write on a paper or a text-editor such as Sublime. Not really know much about formatting. I surely understand, this is just a small project. Thank You!
$endgroup$
– Emma
3 hours ago
add a comment |
$begingroup$
Functionality:
This script uses ~80 URL requests and writes ~8000 arrays to a file (~50Mb-150Mb).
Performance:
The only goal is making this script as fast/efficient (performance) as possible. There are alternative methods (such as relevant question), which I'm not sure how to implement. Would you be so kind and review my modified working code?
Alternative getSymbols()
:
public static function getSymbols() {
return array_map(function($line){ return str_getcsv($line, "t"); }, file(__DIR__ . self::SYMBOLS_PATH));
}
Entire Modified Code (Version II):
// local server and live
if($_SERVER['LOGNAME']==="NAME_OF_LOGNAME_GOES_HERE"){
error_reporting(E_ALL);
}else{
error_reporting(0);
}
date_default_timezone_set("UTC");
ini_set('max_execution_time' , 0);
ini_set('memory_limit','-1');
set_time_limit(0);
EquityRecords::allEquitiesSignleJSON(new EquityRecords());
Class EquityRecords
{
const NUMBER_OF_STOCKS_PER_REQUEST = 100;
const NEW_LINE = "n";
/**
*
* @var a string of iextrading symbols
*/
const SYMBOLS_PATH = '/../../config/z-iextrading-symbs.md';
/**
*
* @var a string of our symbols json directory
*/
const SYMBOLS_DIR = "/../../data/equities/real-time-60sec/z-raw-equilibrium-estimation";
/**
*
* @var a string of target path and query
*/
const TARGET_QUERY = "stock/market/batch?symbols=";
/**
*
* @var a string of iextrading base URL
*/
const BASE_URL = "https://api.iextrading.com/1.0/";
/**
*
* @var a string of iextrading end point
*/
const END_POINT = "&types=quote,chart&range=1m&last=10";
/**
*
* @var an integer for maximum number of stocks per URL on each call
*/
//***************** A ********************** //
// public static function getSymbols() {
// return array_map(function($line){ return str_getcsv($line, "t"); }, file(__DIR__ . self::SYMBOLS_PATH));
// }
public static function getSymbols(){
//***************** START: ALL SYMBOLS ARRAY ********************** //
// var: is a filename path directory, where there is an md file with list of equities
$list_of_equities_file= __DIR__ . self::SYMBOLS_PATH;
// var: is content of md file with list of equities
$content_of_equities= file_get_contents($list_of_equities_file);
// var is an array(3) of equities such as: string(4) "ZYNE", string(10) "2019-01-04", string(27) "ZYNERBA PHARMACEUTICALS INC"
// $symbols_array=preg_split('/rn|r|n/', $content_of_equities);
$symbols_array=preg_split('/R/', $content_of_equities);
//***************** END: ALL SYMBOLS ARRAY ********************** //
// child and mother arrays are created to help calling equities in batches of 100, which seems to be the API limit.
$child=array();
$mother=array();
// var: is 100 counter
$limit_counter=self::NUMBER_OF_STOCKS_PER_REQUEST;
foreach ($symbols_array as $ticker_arr){
$limit_counter=$limit_counter-1;
$symbols_array=preg_split('/t/', $ticker_arr);
array_push($child,$symbols_array);
if($limit_counter<=0){
$limit_counter=self::NUMBER_OF_STOCKS_PER_REQUEST;
array_push($mother, $child);
$child=array();
}
}
return $mother;
}
public static function allEquitiesSignleJSON(){
$equity_arrays=EquityRecords::getSymbols();
$base_url=self::BASE_URL.self::TARGET_QUERY;
$current_time=date("Y-m-d-H-i-s");
$all_equities=array();
// ticker: AAPL, GE, AMD
foreach ($equity_arrays as $ticker_arr) {
$ticker=array_column($ticker_arr, 0);
$equity_url=$base_url . implode("%2C", $ticker) . self::END_POINT;
$raw_eauity_json=file_get_contents($equity_url);
$raw_equity_array=json_decode($raw_eauity_json, true);
$all_equities=array_merge($all_equities, $raw_equity_array);
}
$all_equities_json=json_encode($all_equities);
$symbols_dir= __DIR__ . self::SYMBOLS_DIR;
if (!is_dir($symbols_dir)) {mkdir($symbols_dir, 0755,true);}
$raw_equity_file=$symbols_dir . "/" . $current_time . ".json";
$fp=fopen($raw_equity_file, "x+");
fwrite($fp, $all_equities_json);
fclose($fp);
echo "YAAAY! Equity JSON file success at " . __METHOD__ . " ! 💚 " . self::NEW_LINE;
}
}
Sample CSV:
AAPL 2019-01-04 APPLE INC
AAT 2019-01-04 AMERICAN ASSETS TRUST INC
AAU 2019-01-04 ALMADEN MINERALS LTD - B
AAWW 2019-01-04 ATLAS AIR WORLDWIDE HOLDINGS
AAXJ 2019-01-04 ISHARES MSCI ALL COUNTRY ASI
AAXN 2019-01-04 AXON ENTERPRISE INC
AB 2019-01-04 ALLIANCEBERNSTEIN HOLDING LP
ABAC 2019-01-04 RENMIN TIANLI GROUP INC
ABB 2019-01-04 ABB LTD-SPON ADR
ABBV 2019-01-04 ABBVIE INC
ABC 2019-01-04 AMERISOURCEBERGEN CORP
ABCB 2019-01-04 AMERIS BANCORP
ABDC 2019-01-04 ALCENTRA CAPITAL CORP
ABEO 2019-01-04 ABEONA THERAPEUTICS INC
ABEOW 2019-01-04
ABEV 2019-01-04 AMBEV SA-ADR
ABG 2019-01-04 ASBURY AUTOMOTIVE GROUP
ABIL 2019-01-04 ABILITY INC
ABIO 2019-01-04 ARCA BIOPHARMA INC
ABM 2019-01-04 ABM INDUSTRIES INC
ABMD 2019-01-04 ABIOMED INC
ABR 2019-01-04 ARBOR REALTY TRUST INC
ABR-A 2019-01-04
ABR-B 2019-01-04
ABR-C 2019-01-04
ABT 2019-01-04 ABBOTT LABORATORIES
ABTX 2019-01-04 ALLEGIANCE BANCSHARES INC
ABUS 2019-01-04 ARBUTUS BIOPHARMA CORP
AC 2019-01-04 ASSOCIATED CAPITAL GROUP - A
ACA 2019-01-04 ARCOSA INC
ACAD 2019-01-04 ACADIA PHARMACEUTICALS INC
ACB 2019-01-04 AURORA CANNABIS INC
ACBI 2019-01-04 ATLANTIC CAPITAL BANCSHARES
ACC 2019-01-04 AMERICAN CAMPUS COMMUNITIES
ACCO 2019-01-04 ACCO BRANDS CORP
ACER 2019-01-04 ACER THERAPEUTICS INC
ACES 2019-01-04 ALPS CLEAN ENERGY ETF
ACET 2019-01-04 ACETO CORP
ACGL 2019-01-04 ARCH CAPITAL GROUP LTD
ACGLO 2019-01-04
ACGLP 2019-01-04
ACH 2019-01-04 ALUMINUM CORP OF CHINA-ADR
ACHC 2019-01-04 ACADIA HEALTHCARE CO INC
ACHN 2019-01-04 ACHILLION PHARMACEUTICALS
ACHV 2019-01-04 ACHIEVE LIFE SCIENCES INC
ACIA 2019-01-04 ACACIA COMMUNICATIONS INC
ACIM 2019-01-04 SPDR MSCI ACWI IMI ETF
ACIU 2019-01-04 AC IMMUNE SA
ACIW 2019-01-04 ACI WORLDWIDE INC
ACLS 2019-01-04 AXCELIS TECHNOLOGIES INC
ACM 2019-01-04 AECOM
ACMR 2019-01-04 ACM RESEARCH INC-CLASS A
ACN 2019-01-04 ACCENTURE PLC-CL A
ACNB 2019-01-04 ACNB CORP
ACOR 2019-01-04 ACORDA THERAPEUTICS INC
ACP 2019-01-04 ABERDEEN INCOME CREDIT STRAT
ACRE 2019-01-04 ARES COMMERCIAL REAL ESTATE
ACRS 2019-01-04 ACLARIS THERAPEUTICS INC
ACRX 2019-01-04 ACELRX PHARMACEUTICALS INC
ACSG 2019-01-04 XTRACKERS MSCI ACWI EX USA E
ACSI 2019-01-04 AMERICAN CUSTOMER SATISFACTI
ACST 2019-01-04 ACASTI PHARMA INC
ACT 2019-01-04 ADVISORSHARES VICE ETF
ACTG 2019-01-04 ACACIA RESEARCH CORP
ACU 2019-01-04 ACME UNITED CORP
ACV 2019-01-04 ALLIANZGI DIVERSIFIED INCOME
ACWF 2019-01-04 ISHARES EDGE MSCI MULTIFACTO
ACWI 2019-01-04 ISHARES MSCI ACWI ETF
ACWV 2019-01-04 ISHARES EDGE MSCI MIN VOL GL
ACWX 2019-01-04 ISHARES MSCI ACWI EX US ETF
ACY 2019-01-04 AEROCENTURY CORP
ADAP 2019-01-04 ADAPTIMMUNE THERAPEUTICS-ADR
ADBE 2019-01-04 ADOBE INC
ADC 2019-01-04 AGREE REALTY CORP
ADES 2019-01-04 ADVANCED EMISSIONS SOLUTIONS
ADI 2019-01-04 ANALOG DEVICES INC
ADIL 2019-01-04 ADIAL PHARMACEUTICALS INC
ADILW 2019-01-04
ADM 2019-01-04 ARCHER-DANIELS-MIDLAND CO
ADMA 2019-01-04 ADMA BIOLOGICS INC
ADMP 2019-01-04 ADAMIS PHARMACEUTICALS CORP
ADMS 2019-01-04 ADAMAS PHARMACEUTICALS INC
ADNT 2019-01-04 ADIENT PLC
ADOM 2019-01-04 ADOMANI INC
ADP 2019-01-04 AUTOMATIC DATA PROCESSING
ADRA 2019-01-04 INVESCO BLDRS ASIA 50 ADR IN
ADRD 2019-01-04 INVESCO BLDRS DEVELOPED MARK
ADRE 2019-01-04 INVESCO BLDRS EMERGING MARKE
ADRO 2019-01-04 ADURO BIOTECH INC
ADRU 2019-01-04 INVESCO BLDRS EUROPE SELECT
ADS 2019-01-04 ALLIANCE DATA SYSTEMS CORP
ADSK 2019-01-04 AUTODESK INC
ADSW 2019-01-04 ADVANCED DISPOSAL SERVICES I
ADT 2019-01-04 ADT INC
ADTN 2019-01-04 ADTRAN INC
ADUS 2019-01-04 ADDUS HOMECARE CORP
ADVM 2019-01-04 ADVERUM BIOTECHNOLOGIES INC
ADX 2019-01-04 ADAMS DIVERSIFIED EQUITY
ADXS 2019-01-04 ADVAXIS INC
AE 2019-01-04 ADAMS RESOURCES & ENERGY INC
AEB 2019-01-04
AED 2019-01-04
AEE 2019-01-04 AMEREN CORPORATION
AEF 2019-01-04 ABERDEEN EM MRKT EQTY INC
AEG 2019-01-04 AEGON N.V.-NY REG SHR
AEGN 2019-01-04 AEGION CORP
AEH 2019-01-04
AEHR 2019-01-04 AEHR TEST SYSTEMS
AEIS 2019-01-04 ADVANCED ENERGY INDUSTRIES
AEL 2019-01-04 AMERICAN EQUITY INVT LIFE HL
AEM 2019-01-04 AGNICO EAGLE MINES LTD
AEMD 2019-01-04 AETHLON MEDICAL INC
AEO 2019-01-04 AMERICAN EAGLE OUTFITTERS
AEP 2019-01-04 AMERICAN ELECTRIC POWER
AER 2019-01-04 AERCAP HOLDINGS NV
AERI 2019-01-04 AERIE PHARMACEUTICALS INC
AES 2019-01-04 AES CORP
AETI 2019-01-04 AMERICAN ELECTRIC TECHNOLOGI
AEY 2019-01-04 ADDVANTAGE TECHNOLOGIES GRP
AEYE 2019-01-04 AUDIOEYE INC
AEZS 2019-01-04 AETERNA ZENTARIS INC
AFB 2019-01-04 ALLIANCE NATIONAL MUNI INC
AFC 2019-01-04
AFG 2019-01-04 AMERICAN FINANCIAL GROUP INC
AFGE 2019-01-04
AFGH 2019-01-04
AFH 2019-01-04 ATLAS FINANCIAL HOLDINGS INC
AFHBL 2019-01-04
AFI 2019-01-04 ARMSTRONG FLOORING INC
AFIF 2019-01-04 ANFIELD UNIVERSAL FIXED INCO
AFIN 2019-01-04 AMERICAN FINANCE TRUST INC
AFK 2019-01-04 VANECK VECTORS AFRICA INDEX
AFL 2019-01-04 AFLAC INC
AFMD 2019-01-04 AFFIMED NV
AFSI-A 2019-01-04
AFSI-B 2019-01-04
AFSI-C 2019-01-04
AFSI-D 2019-01-04
AFSI-E 2019-01-04
AFSI-F 2019-01-04
AFSS 2019-01-04
AFST 2019-01-04
AFT 2019-01-04 APOLLO SENIOR FLOATING RATE
AFTY 2019-01-04 CSOP FTSE CHINA A50 ETF
AG 2019-01-04 FIRST MAJESTIC SILVER CORP
AGCO 2019-01-04 AGCO CORP
AGD 2019-01-04 ABERDEEN GLBL DYN DIVID
AGE 2019-01-04 AGEX THERAPEUTICS INC
AGEN 2019-01-04 AGENUS INC
AGF 2019-01-04 DB AGRICULTURE LONG ETN
AGFS 2019-01-04 AGROFRESH SOLUTIONS INC
AGFSW 2019-01-04
AGG 2019-01-04 ISHARES CORE U.S. AGGREGATE
AGGE 2019-01-04 IQ ENHANCED CORE BOND US ETF
AGGP 2019-01-04 IQ ENHANCED CORE PLUS BOND U
AGGY 2019-01-04 WISDOMTREE YIELD ENHANCED US
AGI 2019-01-04 ALAMOS GOLD INC-CLASS A
AGIO 2019-01-04 AGIOS PHARMACEUTICALS INC
AGLE 2019-01-04 AEGLEA BIOTHERAPEUTICS INC
AGM 2019-01-04 FEDERAL AGRIC MTG CORP-CL C
AGM-A 2019-01-04
AGM-B 2019-01-04
AGM-C 2019-01-04
AGM.A 2019-01-04 FEDERAL AGRIC MTG CORP-CL A
AGMH 2019-01-04 AGM GROUP HOLDINGS INC
AGN 2019-01-04 ALLERGAN PLC
AGNC 2019-01-04 AGNC INVESTMENT CORP
AGNCB 2019-01-04
AGNCN 2019-01-04
AGND 2019-01-04 WISDOMTREE TRUST WISDOMTREE
AGO 2019-01-04 ASSURED GUARANTY LTD
AGO-B 2019-01-04
AGO-E 2019-01-04
AGO-F 2019-01-04
AGQ 2019-01-04 PROSHARES ULTRA SILVER
AGR 2019-01-04 AVANGRID INC
AGRO 2019-01-04 ADECOAGRO SA
AGRX 2019-01-04 AGILE THERAPEUTICS INC
AGS 2019-01-04 PLAYAGS INC
AGT 2019-01-04 ISHARES ARGENTINA
AGTC 2019-01-04 APPLIED GENETIC TECHNOLOGIES
AGX 2019-01-04 ARGAN INC
AGYS 2019-01-04 AGILYSYS INC
AGZ 2019-01-04 ISHARES AGENCY BOND ETF
AGZD 2019-01-04 WISDOMTREE TRUST WISDOMTREE
AHC 2019-01-04 A H BELO CORP-A
AHH 2019-01-04 ARMADA HOFFLER PROPERTIES IN
AHL 2019-01-04 ASPEN INSURANCE HOLDINGS LTD
AHL-C 2019-01-04
AHL-D 2019-01-04
AHPI 2019-01-04 ALLIED HEALTHCARE PRODUCTS
AHT 2019-01-04 ASHFORD HOSPITALITY TRUST
AHT-D 2019-01-04
AHT-F 2019-01-04
AHT-G 2019-01-04
AHT-H 2019-01-04
AHT-I 2019-01-04
AI 2019-01-04 ARLINGTON ASSET INVESTMENT-A
AI-B 2019-01-04
AIA 2019-01-04 ISHARES ASIA 50 ETF
AIC 2019-01-04
AIEQ 2019-01-04 AI POWERED EQUITY ETF
AIF 2019-01-04 APOLLO TACTICAL INCOME FUND
AIG 2019-01-04 AMERICAN INTERNATIONAL GROUP
AIG+ 2019-01-04
AIHS 2019-01-04 SENMIAO TECHNOLOGY LTD
AIIQ 2019-01-04 AI POWERED INTERNATIONAL EQU
AIMC 2019-01-04 ALTRA INDUSTRIAL MOTION CORP
AIMT 2019-01-04 AIMMUNE THERAPEUTICS INC
AIN 2019-01-04 ALBANY INTL CORP-CL A
AINC 2019-01-04 ASHFORD INC
AINV 2019-01-04 APOLLO INVESTMENT CORP
AIPT 2019-01-04 PRECISION THERAPEUTICS INC
AIQ 2019-01-04 Global X Future Analytics TE
AIR 2019-01-04 AAR CORP
AIRG 2019-01-04 AIRGAIN INC
AIRI 2019-01-04 AIR INDUSTRIES GROUP
AIRR 2019-01-04 FIRST TRUST RBA AMERICAN IND
AIRT 2019-01-04 AIR T INC
AIT 2019-01-04 APPLIED INDUSTRIAL TECH INC
AIV 2019-01-04 APARTMENT INVT & MGMT CO -A
AIV-A 2019-01-04
AIW 2019-01-04
AIY 2019-01-04
AIZ 2019-01-04 ASSURANT INC
AIZP 2019-01-04
AJG 2019-01-04 ARTHUR J GALLAGHER & CO
AJRD 2019-01-04 AEROJET ROCKETDYNE HOLDINGS
AJX 2019-01-04 GREAT AJAX CORP
AJXA 2019-01-04
AKAM 2019-01-04 AKAMAI TECHNOLOGIES INC
AKAO 2019-01-04 ACHAOGEN INC
AKBA 2019-01-04 AKEBIA THERAPEUTICS INC
AKCA 2019-01-04 AKCEA THERAPEUTICS INC
AKER 2019-01-04 AKERS BIOSCIENCES INC
AKG 2019-01-04 ASANKO GOLD INC
AKO.A 2019-01-04 EMBOTELLADORA ANDINA-ADR A
AKO.B 2019-01-04 EMBOTELLADORA ANDINA-ADR B
AKP 2019-01-04 ALLIANCE CALIF MUNI INCOME
AKR 2019-01-04 ACADIA REALTY TRUST
AKRX 2019-01-04 AKORN INC
AKS 2019-01-04 AK STEEL HOLDING CORP
AKTS 2019-01-04 AKOUSTIS TECHNOLOGIES INC
AKTX 2019-01-04 AKARI THERAPEUTICS PLC-ADR
AL 2019-01-04 AIR LEASE CORP
ALAC 2019-01-04 ALBERTON ACQUISITION CORP
ALACR 2019-01-04 ALBERTON ACQUISITION CO-RTS
ALACU 2019-01-04 ALBERTON ACQUISITION CORP
ALACW 2019-01-04
ALB 2019-01-04 ALBEMARLE CORP
ALBO 2019-01-04 ALBIREO PHARMA INC
ALCO 2019-01-04 ALICO INC
ALD 2019-01-04 WISDOMTREE ASIA LOCAL DEBT
ALDR 2019-01-04 ALDER BIOPHARMACEUTICALS INC
ALDX 2019-01-04 ALDEYRA THERAPEUTICS INC
ALE 2019-01-04 ALLETE INC
ALEX 2019-01-04 ALEXANDER & BALDWIN INC
ALFA 2019-01-04 ALPHACLONE ALTERNATIVE ALPHA
ALG 2019-01-04 ALAMO GROUP INC
ALGN 2019-01-04 ALIGN TECHNOLOGY INC
ALGR 2019-01-04 ALLEGRO MERGER CORP
ALGRR 2019-01-04 ALLEGRO MERGER CORP-RTS
ALGRU 2019-01-04 ALLEGRO MERGER CORP
ALGRW 2019-01-04
ALGT 2019-01-04 ALLEGIANT TRAVEL CO
ALIM 2019-01-04 ALIMERA SCIENCES INC
ALJJ 2019-01-04 ALJ REGIONAL HOLDINGS INC
ALK 2019-01-04 ALASKA AIR GROUP INC
ALKS 2019-01-04 ALKERMES PLC
ALL 2019-01-04 ALLSTATE CORP
ALL-A 2019-01-04
ALL-B 2019-01-04
ALL-D 2019-01-04
ALL-E 2019-01-04
ALL-F 2019-01-04
ALL-G 2019-01-04
ALLE 2019-01-04 ALLEGION PLC
ALLK 2019-01-04 ALLAKOS INC
ALLO 2019-01-04 ALLOGENE THERAPEUTICS INC
ALLT 2019-01-04 ALLOT COMMUNICATIONS LTD
ALLY 2019-01-04 ALLY FINANCIAL INC
ALLY-A 2019-01-04
ALNA 2019-01-04 ALLENA PHARMACEUTICALS INC
ALNY 2019-01-04 ALNYLAM PHARMACEUTICALS INC
ALO 2019-01-04 ALIO GOLD INC
ALOT 2019-01-04 ASTRONOVA INC
ALP-Q 2019-01-04
ALPN 2019-01-04 ALPINE IMMUNE SCIENCES INC
ALQA 2019-01-04 ALLIQUA BIOMEDICAL INC
ALRM 2019-01-04 ALARM.COM HOLDINGS INC
ALRN 2019-01-04 AILERON THERAPEUTICS INC
ALSK 2019-01-04 ALASKA COMM SYSTEMS GROUP
ALSN 2019-01-04 ALLISON TRANSMISSION HOLDING
ALT 2019-01-04 ALTIMMUNE INC
ALTM 2019-01-04 ALTUS MIDSTREAM CO -A
ALTR 2019-01-04 ALTAIR ENGINEERING INC - A
ALTS 2019-01-04 PRSHR MRNGSTR ALT SOL ETF
ALTY 2019-01-04 GLOBAL X SUPERDIVIDEND ALTER
ALV 2019-01-04 AUTOLIV INC
ALX 2019-01-04 ALEXANDER'S INC
ALXN 2019-01-04 ALEXION PHARMACEUTICALS INC
ALYA 2019-01-04 ALITHYA GROUP INC-CLASS A
ALZH 2019-01-04 ALZHEON INC
AM 2019-01-04 ANTERO MIDSTREAM PARTNERS LP
AMAG 2019-01-04 AMAG PHARMACEUTICALS INC
AMAL 2019-01-04 AMALGAMATED BK OF NEW YORK-A
AMAT 2019-01-04 APPLIED MATERIALS INC
AMBA 2019-01-04 AMBARELLA INC
AMBC 2019-01-04 AMBAC FINANCIAL GROUP INC
AMBCW 2019-01-04
AMBO 2019-01-04 AMBOW EDUCATION HOLDING-ADR
AMBR 2019-01-04 AMBER ROAD INC
AMC 2019-01-04 AMC ENTERTAINMENT HLDS-CL A
AMCA 2019-01-04 ISHARES RUSSELL 1000 US REV
AMCI 2019-01-04 AMCI ACQUISITION CORP-CL A
AMCIU 2019-01-04 AMCI ACQUISITION CORP
AMCIW 2019-01-04
AMCN 2019-01-04 AIRMEDIA GROUP INC-ADR
AMCX 2019-01-04 AMC NETWORKS INC-A
AMD 2019-01-04 ADVANCED MICRO DEVICES
AME 2019-01-04 AMETEK INC
AMED 2019-01-04 AMEDISYS INC
AMEH 2019-01-04 APOLLO MEDICAL HOLDINGS INC
AMG 2019-01-04 AFFILIATED MANAGERS GROUP
AMGN 2019-01-04 AMGEN INC
AMGP 2019-01-04 ANTERO MIDSTREAM GP LP
AMH 2019-01-04 AMERICAN HOMES 4 RENT- A
AMH-D 2019-01-04
AMH-E 2019-01-04
AMH-F 2019-01-04
AMH-G 2019-01-04
AMH-H 2019-01-04
AMID 2019-01-04 AMERICAN MIDSTREAM PARTNERS
AMJ 2019-01-04 JPMORGAN ALERIAN MLP INDEX
AMJL 2019-01-04 X-LINKS 2XLEVRG ALERIAN MLP
AMKR 2019-01-04 AMKOR TECHNOLOGY INC
AMLP 2019-01-04 ALERIAN MLP ETF
AMMA 2019-01-04 ALLIANCE MMA INC
AMN 2019-01-04 AMN HEALTHCARE SERVICES INC
AMNB 2019-01-04 AMER NATL BNKSHS/DANVILLE VA
AMOT 2019-01-04 ALLIED MOTION TECHNOLOGIES
AMOV 2019-01-04 AMERICA MOVIL-ADR SERIES A
AMP 2019-01-04 AMERIPRISE FINANCIAL INC
AMPE 2019-01-04 AMPIO PHARMACEUTICALS INC
AMPH 2019-01-04 AMPHASTAR PHARMACEUTICALS IN
AMR 2019-01-04 ALTA MESA RESOURCES INC-A
AMRB 2019-01-04 AMERICAN RIVER BANKSHRS (CA)
AMRC 2019-01-04 AMERESCO INC-CL A
AMRH 2019-01-04 AMERI HOLDINGS INC
AMRHW 2019-01-04
AMRK 2019-01-04 A-MARK PRECIOUS METALS INC
AMRN 2019-01-04 AMARIN CORP PLC -ADR
AMRS 2019-01-04 AMYRIS INC
AMRWW 2019-01-04
AMRX 2019-01-04 AMNEAL PHARMACEUTICALS INC
AMS 2019-01-04 AMERICAN SHARED HOSPITAL SER
AMSC 2019-01-04 AMERICAN SUPERCONDUCTOR CORP
AMSF 2019-01-04 AMERISAFE INC
AMSWA 2019-01-04 AMERICAN SOFTWARE INC-CL A
AMT 2019-01-04 AMERICAN TOWER CORP
AMTB 2019-01-04 MERCANTIL BANK HOLDING COR-A
AMTBB 2019-01-04 MERCANTIL BANK HOLDING COR-B
AMTD 2019-01-04 TD AMERITRADE HOLDING CORP
AMTX 2019-01-04 AEMETIS INC
AMU 2019-01-04 ETRACS ALERIAN MLP ETN
AMUB 2019-01-04 ETRACS ALERIAN MLP IND SER B
AMWD 2019-01-04 AMERICAN WOODMARK CORP
AMX 2019-01-04 AMERICA MOVIL-SPN ADR CL L
AMZA 2019-01-04 INFRACAP MLP ETF
AMZN 2019-01-04 AMAZON.COM INC
AN 2019-01-04 AUTONATION INC
ANAB 2019-01-04 ANAPTYSBIO INC
ANAT 2019-01-04 AMERICAN NATIONAL INSURANCE
ANCX 2019-01-04 ACCESS NATIONAL CORP
ANDE 2019-01-04 ANDERSONS INC/THE
ANDX 2019-01-04 ANDEAVOR LOGISTICS LP
ANET 2019-01-04 ARISTA NETWORKS INC
ANF 2019-01-04 ABERCROMBIE & FITCH CO-CL A
ANFI 2019-01-04 AMIRA NATURE FOODS LTD
ANGI 2019-01-04 ANGI HOMESERVICES INC- A
ANGL 2019-01-04 VANECK VECTORS FALLEN ANGEL
ANGO 2019-01-04 ANGIODYNAMICS INC
ANH 2019-01-04 ANWORTH MORTGAGE ASSET CORP
ANH-A 2019-01-04
ANH-B 2019-01-04
ANH-C 2019-01-04
ANIK 2019-01-04 ANIKA THERAPEUTICS INC
ANIP 2019-01-04 ANI PHARMACEUTICALS INC
ANIX 2019-01-04 ANIXA BIOSCIENCES INC
ANSS 2019-01-04 ANSYS INC
ANTM 2019-01-04 ANTHEM INC
ANY 2019-01-04 SPHERE 3D CORP
AOA 2019-01-04 ISHARES CORE AGGRESSIVE ALLO
AOBC 2019-01-04 AMERICAN OUTDOOR BRANDS CORP
AOD 2019-01-04 ABERDEEN TTL DYN DIVID
AOK 2019-01-04 ISHARES CORE CONSERVATIVE AL
AOM 2019-01-04 ISHARES CORE MODERATE ALLOCA
AON 2019-01-04 AON PLC
AOR 2019-01-04 ISHARES CORE GROWTH ALLOCATI
AOS 2019-01-04 SMITH (A.O.) CORP
AOSL 2019-01-04 ALPHA & OMEGA SEMICONDUCTOR
AP 2019-01-04 AMPCO-PITTSBURGH CORP
APA 2019-01-04 APACHE CORP
APAM 2019-01-04 ARTISAN PARTNERS ASSET MA -A
APB 2019-01-04 ASIA PACIFIC FUND INC
APC 2019-01-04 ANADARKO PETROLEUM CORP
APD 2019-01-04 AIR PRODUCTS & CHEMICALS INC
APDN 2019-01-04 APPLIED DNA SCIENCES INC
APDNW 2019-01-04
APEI 2019-01-04 AMERICAN PUBLIC EDUCATION
APEN 2019-01-04 APOLLO ENDOSURGERY INC
APF 2019-01-04 MORGAN STANLEY ASIA PACIFIC
APH 2019-01-04 AMPHENOL CORP-CL A
APHA 2019-01-04 APHRIA INC
APHB 2019-01-04 AMPLIPHI BIOSCIENCES CORP
APLE 2019-01-04 APPLE HOSPITALITY REIT INC
APLS 2019-01-04 APELLIS PHARMACEUTICALS INC
APM 2019-01-04 APTORUM GROUP LTD-CLASS A
APO 2019-01-04 APOLLO GLOBAL MANAGEMENT - A
APO-A 2019-01-04
APO-B 2019-01-04
APOG 2019-01-04 APOGEE ENTERPRISES INC
APOP 2019-01-04 CELLECT BIOTECHNOLOGY LT-ADR
APOPW 2019-01-04
APPF 2019-01-04 APPFOLIO INC - A
APPN 2019-01-04 APPIAN CORP
APPS 2019-01-04 DIGITAL TURBINE INC
APRI 2019-01-04 APRICUS BIOSCIENCES INC
APRN 2019-01-04 BLUE APRON HOLDINGS INC-A
APT 2019-01-04 ALPHA PRO TECH LTD
APTI 2019-01-04 APPTIO INC - CLASS A
APTO 2019-01-04 APTOSE BIOSCIENCES INC
APTS 2019-01-04 PREFERRED APARTMENT COMMUN-A
APTV 2019-01-04 APTIV PLC
APTX 2019-01-04 APTINYX INC
APU 2019-01-04 AMERIGAS PARTNERS-LP
APVO 2019-01-04 APTEVO THERAPEUTICS INC
APWC 2019-01-04 ASIA PACIFIC WIRE & CABLE
APY 2019-01-04 APERGY CORP
APYX 2019-01-04 APYX MEDICAL CORP
AQ 2019-01-04 AQUANTIA CORP
AQB 2019-01-04 AQUABOUNTY TECHNOLOGIES
AQMS 2019-01-04 AQUA METALS INC
AQN 2019-01-04 ALGONQUIN POWER & UTILITIES
AQNA 2019-01-04
AQST 2019-01-04 AQUESTIVE THERAPEUTICS INC
AQUA 2019-01-04 EVOQUA WATER TECHNOLOGIES CO
AQXP 2019-01-04 AQUINOX PHARMACEUTICALS INC
AR 2019-01-04 ANTERO RESOURCES CORP
ARA 2019-01-04 AMERICAN RENAL ASSOCIATES HO
ARAV 2019-01-04 ARAVIVE INC
ARAY 2019-01-04 ACCURAY INC
ARC 2019-01-04 ARC DOCUMENT SOLUTIONS INC
ARCB 2019-01-04 ARCBEST CORP
ARCC 2019-01-04 ARES CAPITAL CORP
ARCE 2019-01-04 ARCO PLATFORM LTD - CLASS A
ARCH 2019-01-04 ARCH COAL INC - A
ARCI 2019-01-04 APPLIANCE RECYCLING CTRS AMR
ARCM 2019-01-04 ARROW RESERVE CAP MANAG ETF
ARCO 2019-01-04 ARCOS DORADOS HOLDINGS INC-A
ARCT 2019-01-04 ARCTURUS THERAPEUTICS LTD
ARCW 2019-01-04 ARC GROUP WORLDWIDE INC
ARD 2019-01-04 ARDAGH GROUP SA
ARDC 2019-01-04 ARES DYNAMIC CREDIT ALLOCATI
ARDM 2019-01-04 ARADIGM CORP
ARDS 2019-01-04 ARIDIS PHARMACEUTICALS INC
ARDX 2019-01-04 ARDELYX INC
ARE 2019-01-04 ALEXANDRIA REAL ESTATE EQUIT
ARE-D 2019-01-04
ARES 2019-01-04 ARES MANAGEMENT CORP - A
ARES-A 2019-01-04
AREX 2019-01-04 APPROACH RESOURCES INC
ARGD 2019-01-04
ARGO 2019-01-04 ARGO GROUP INTERNATIONAL
ARGT 2019-01-04 GLOBAL X MSCI ARGENTINA ETF
ARGX 2019-01-04 ARGENX SE - ADR
ARI 2019-01-04 APOLLO COMMERCIAL REAL ESTAT
ARI-C 2019-01-04
ARKG 2019-01-04 ARK GENOMIC REVL MULT-SECTOR
ARKK 2019-01-04 ARK INNOVATION ETF
ARKQ 2019-01-04 ARK INDUSTRIAL INNOVATION
ARKR 2019-01-04 ARK RESTAURANTS CORP
ARKW 2019-01-04 ARK WEB X.O ETF
ARL 2019-01-04 AMERICAN REALTY INVESTORS IN
ARLO 2019-01-04 ARLO TECHNOLOGIES INC
ARLP 2019-01-04 ALLIANCE RESOURCE PARTNERS
ARMK 2019-01-04 ARAMARK
ARNA 2019-01-04 ARENA PHARMACEUTICALS INC
ARNC 2019-01-04 ARCONIC INC
ARNC- 2019-01-04
AROC 2019-01-04 ARCHROCK INC
AROW 2019-01-04 ARROW FINANCIAL CORP
ARPO 2019-01-04 AERPIO PHARMACEUTICALS INC
ARQL 2019-01-04 ARQULE INC
ARR 2019-01-04 ARMOUR RESIDENTIAL REIT INC
ARR-A 2019-01-04
ARR-B 2019-01-04
ARRS 2019-01-04 ARRIS INTERNATIONAL PLC
ARRY 2019-01-04 ARRAY BIOPHARMA INC
ARTNA 2019-01-04 ARTESIAN RESOURCES CORP-CL A
ARTW 2019-01-04 ART'S-WAY MANUFACTURING CO
ARTX 2019-01-04 AROTECH CORP
ARVN 2019-01-04 ARVINAS INC
ARW 2019-01-04 ARROW ELECTRONICS INC
ARWR 2019-01-04 ARROWHEAD PHARMACEUTICALS IN
ARYA 2019-01-04 ARYA SCIENCES ACQUISITION-A
ARYAU 2019-01-04 ARYA SCIENCES ACQUISITION CO
ARYAW 2019-01-04
ASA 2019-01-04 ASA GOLD AND PRECIOUS METALS
ASB 2019-01-04 ASSOCIATED BANC-CORP
ASB-C 2019-01-04
ASB-D 2019-01-04
ASB-E 2019-01-04
ASC 2019-01-04 ARDMORE SHIPPING CORP
ASCMA 2019-01-04 ASCENT CAPITAL GROUP INC-A
ASEA 2019-01-04 GLOBAL X FTSE SOUTHEAST ASIA
ASET 2019-01-04 FLEXSHARES REAL ASSETS FUND
ASFI 2019-01-04 ASTA FUNDING INC
ASG 2019-01-04 LIBERTY ALL-STAR GROWTH FD
ASGN 2019-01-04 ASGN INC
ASH 2019-01-04 ASHLAND GLOBAL HOLDINGS INC
ASHR 2019-01-04 XTRACKERS HARVEST CSI 300 CH
ASHS 2019-01-04 XTRACKERS HARVEST CSI 500 CH
ASHX 2019-01-04 XTRACKERS MSCI CHINA A INCLU
ASIX 2019-01-04 ADVANSIX INC
ASLN 2019-01-04 ASLAN PHARMACEUTICALS LT-ADR
ASM 2019-01-04 AVINO SILVER & GOLD MINES
ASMB 2019-01-04 ASSEMBLY BIOSCIENCES INC
ASML 2019-01-04 ASML HOLDING NV-NY REG SHS
ASNA 2019-01-04 ASCENA RETAIL GROUP INC
ASND 2019-01-04 ASCENDIS PHARMA A/S - ADR
ASNS 2019-01-04 ARSANIS INC
ASPN 2019-01-04 ASPEN AEROGELS INC
ASPS 2019-01-04 ALTISOURCE PORTFOLIO SOL
ASPU 2019-01-04 ASPEN GROUP INC
ASR 2019-01-04 GRUPO AEROPORTUARIO SUR-ADR
ASRT 2019-01-04 ASSERTIO THERAPEUTICS INC
ASRV 2019-01-04 AMERISERV FINANCIAL INC
ASRVP 2019-01-04
AST 2019-01-04 ASTERIAS BIOTHERAPEUTICS
ASTC 2019-01-04 ASTROTECH CORP
ASTE 2019-01-04 ASTEC INDUSTRIES INC
ASUR 2019-01-04 ASURE SOFTWARE INC
ASV 2019-01-04 ASV HOLDINGS INC
ASX 2019-01-04 ASE TECHNOLOGY HOLDING -ADR
ASYS 2019-01-04 AMTECH SYSTEMS INC
AT 2019-01-04 ATLANTIC POWER CORP
ATAI 2019-01-04 ATA INC-ADR
ATAX 2019-01-04 AMERICA FIRST MULTIFAMILY IN
ATEC 2019-01-04 ALPHATEC HOLDINGS INC
ATEN 2019-01-04 A10 NETWORKS INC
ATGE 2019-01-04 ADTALEM GLOBAL EDUCATION INC
ATH 2019-01-04 ATHENE HOLDING LTD-CLASS A
ATHM 2019-01-04 AUTOHOME INC-ADR
ATHN 2019-01-04 ATHENAHEALTH INC
ATHX 2019-01-04 ATHERSYS INC
ATI 2019-01-04 ALLEGHENY TECHNOLOGIES INC
ATIS 2019-01-04 ATTIS INDUSTRIES INC
ATISW 2019-01-04
ATKR 2019-01-04 ATKORE INTERNATIONAL GROUP I
ATLC 2019-01-04 ATLANTICUS HOLDINGS CORP
ATLO 2019-01-04 AMES NATIONAL CORP
ATMP 2019-01-04 BARCLAYS ETN+ SELECT MLP ETN
ATNI 2019-01-04 ATN INTERNATIONAL INC
ATNM 2019-01-04 ACTINIUM PHARMACEUTICALS INC
ATNX 2019-01-04 ATHENEX INC
ATO 2019-01-04 ATMOS ENERGY CORP
ATOM 2019-01-04 ATOMERA INC
ATOS 2019-01-04 ATOSSA GENETICS INC
ATR 2019-01-04 APTARGROUP INC
ATRA 2019-01-04 ATARA BIOTHERAPEUTICS INC
ATRC 2019-01-04 ATRICURE INC
ATRI 2019-01-04 ATRION CORPORATION
ATRO 2019-01-04 ASTRONICS CORP
ATRS 2019-01-04 ANTARES PHARMA INC
ATSG 2019-01-04 AIR TRANSPORT SERVICES GROUP
ATTO 2019-01-04 ATENTO SA
ATTU 2019-01-04 ATTUNITY LTD
ATU 2019-01-04 ACTUANT CORP-A
ATUS 2019-01-04 ALTICE USA INC- A
ATV 2019-01-04 ACORN INTERNATIONAL INC-ADR
ATVI 2019-01-04 ACTIVISION BLIZZARD INC
ATXI 2019-01-04 AVENUE THERAPEUTICS INC
AU 2019-01-04 ANGLOGOLD ASHANTI-SPON ADR
AUBN 2019-01-04 AUBURN NATL BANCORPORATION
AUDC 2019-01-04 AUDIOCODES LTD
AUG 2019-01-04 AURYN RESOURCES INC
AUGR 2019-01-04 DEFIANCE FUTURE TECH ETF
AUMN 2019-01-04 GOLDEN MINERALS CO
AUO 2019-01-04 AU OPTRONICS CORP-SPON ADR
AUPH 2019-01-04 AURINIA PHARMACEUTICALS INC
AUSE 2019-01-04 WISDOMTREE AUSTRALIA DIVIDEN
AUSF 2019-01-04 GLOBAL X ADAPTIVE US FACTOR
AUTL 2019-01-04 AUTOLUS THERAPEUTICS PLC
AUTO 2019-01-04 AUTOWEB INC
AUY 2019-01-04 YAMANA GOLD INC
AVA 2019-01-04 AVISTA CORP
AVAL 2019-01-04 GRUPO AVAL ACCIONES Y VALORE
AVAV 2019-01-04 AEROVIRONMENT INC
AVB 2019-01-04 AVALONBAY COMMUNITIES INC
AVCO 2019-01-04 AVALON GLOBOCARE CORP
AVD 2019-01-04 AMERICAN VANGUARD CORP
AVDL 2019-01-04 AVADEL PHARMACEUTICALS PLC
AVEO 2019-01-04 AVEO PHARMACEUTICALS INC
AVGO 2019-01-04 BROADCOM INC
AVGR 2019-01-04 AVINGER INC
AVH 2019-01-04 AVIANCA HOLDINGS SA-SPON ADR
AVID 2019-01-04 AVID TECHNOLOGY INC
AVK 2019-01-04 ADVENT CLAYMORE CVT SEC& INC
AVLR 2019-01-04 AVALARA INC
AVNS 2019-01-04 AVANOS MEDICAL INC
AVNW 2019-01-04 AVIAT NETWORKS INC
AVP 2019-01-04 AVON PRODUCTS INC
AVRO 2019-01-04 AVROBIO INC
AVT 2019-01-04 AVNET INC
AVX 2019-01-04 AVX CORP
AVXL 2019-01-04 ANAVEX LIFE SCIENCES CORP
AVY 2019-01-04 AVERY DENNISON CORP
AVYA 2019-01-04 AVAYA HOLDINGS CORP
AWF 2019-01-04 ALLIANCEBERNSTEIN GL HI INC
AWI 2019-01-04 ARMSTRONG WORLD INDUSTRIES
AWK 2019-01-04 AMERICAN WATER WORKS CO INC
AWP 2019-01-04 ABERDEEN GLBL PREM PROP
AWR 2019-01-04 AMERICAN STATES WATER CO
AWRE 2019-01-04 AWARE INC/MASS
AWSM 2019-01-04 COOL HOLDINGS INC
AWX 2019-01-04 AVALON HOLDINGS CORP-A
AX 2019-01-04 AXOS FINANCIAL INC
AXAS 2019-01-04 ABRAXAS PETROLEUM CORP
AXDX 2019-01-04 ACCELERATE DIAGNOSTICS INC
AXE 2019-01-04 ANIXTER INTERNATIONAL INC
AXGN 2019-01-04 AXOGEN INC
AXJL 2019-01-04 WISDOMTREE ASIA-PACIFIC EX-J
AXJV 2019-01-04 ISHARES EDGE MSCI MIN VOL AS
AXL 2019-01-04 AMERICAN AXLE & MFG HOLDINGS
AXNX 2019-01-04 AXONICS MODULATION TECHNOLOG
AXO 2019-01-04
AXON 2019-01-04 AXOVANT SCIENCES LTD
AXP 2019-01-04 AMERICAN EXPRESS CO
AXR 2019-01-04 AMREP CORP
AXS 2019-01-04 AXIS CAPITAL HOLDINGS LTD
AXS-D 2019-01-04
AXS-E 2019-01-04
AXSM 2019-01-04 AXSOME THERAPEUTICS INC
AXTA 2019-01-04 AXALTA COATING SYSTEMS LTD
AXTI 2019-01-04 AXT INC
AXU 2019-01-04 ALEXCO RESOURCE CORP
AY 2019-01-04 ATLANTICA YIELD PLC
AYI 2019-01-04 ACUITY BRANDS INC
AYR 2019-01-04 AIRCASTLE LTD
AYTU 2019-01-04 AYTU BIOSCIENCE INC
AYX 2019-01-04 ALTERYX INC - CLASS A
AZN 2019-01-04 ASTRAZENECA PLC-SPONS ADR
performance beginner php file-system api
$endgroup$
Functionality:
This script uses ~80 URL requests and writes ~8000 arrays to a file (~50Mb-150Mb).
Performance:
The only goal is making this script as fast/efficient (performance) as possible. There are alternative methods (such as relevant question), which I'm not sure how to implement. Would you be so kind and review my modified working code?
Alternative getSymbols()
:
public static function getSymbols() {
return array_map(function($line){ return str_getcsv($line, "t"); }, file(__DIR__ . self::SYMBOLS_PATH));
}
Entire Modified Code (Version II):
// local server and live
if($_SERVER['LOGNAME']==="NAME_OF_LOGNAME_GOES_HERE"){
error_reporting(E_ALL);
}else{
error_reporting(0);
}
date_default_timezone_set("UTC");
ini_set('max_execution_time' , 0);
ini_set('memory_limit','-1');
set_time_limit(0);
EquityRecords::allEquitiesSignleJSON(new EquityRecords());
Class EquityRecords
{
const NUMBER_OF_STOCKS_PER_REQUEST = 100;
const NEW_LINE = "n";
/**
*
* @var a string of iextrading symbols
*/
const SYMBOLS_PATH = '/../../config/z-iextrading-symbs.md';
/**
*
* @var a string of our symbols json directory
*/
const SYMBOLS_DIR = "/../../data/equities/real-time-60sec/z-raw-equilibrium-estimation";
/**
*
* @var a string of target path and query
*/
const TARGET_QUERY = "stock/market/batch?symbols=";
/**
*
* @var a string of iextrading base URL
*/
const BASE_URL = "https://api.iextrading.com/1.0/";
/**
*
* @var a string of iextrading end point
*/
const END_POINT = "&types=quote,chart&range=1m&last=10";
/**
*
* @var an integer for maximum number of stocks per URL on each call
*/
//***************** A ********************** //
// public static function getSymbols() {
// return array_map(function($line){ return str_getcsv($line, "t"); }, file(__DIR__ . self::SYMBOLS_PATH));
// }
public static function getSymbols(){
//***************** START: ALL SYMBOLS ARRAY ********************** //
// var: is a filename path directory, where there is an md file with list of equities
$list_of_equities_file= __DIR__ . self::SYMBOLS_PATH;
// var: is content of md file with list of equities
$content_of_equities= file_get_contents($list_of_equities_file);
// var is an array(3) of equities such as: string(4) "ZYNE", string(10) "2019-01-04", string(27) "ZYNERBA PHARMACEUTICALS INC"
// $symbols_array=preg_split('/rn|r|n/', $content_of_equities);
$symbols_array=preg_split('/R/', $content_of_equities);
//***************** END: ALL SYMBOLS ARRAY ********************** //
// child and mother arrays are created to help calling equities in batches of 100, which seems to be the API limit.
$child=array();
$mother=array();
// var: is 100 counter
$limit_counter=self::NUMBER_OF_STOCKS_PER_REQUEST;
foreach ($symbols_array as $ticker_arr){
$limit_counter=$limit_counter-1;
$symbols_array=preg_split('/t/', $ticker_arr);
array_push($child,$symbols_array);
if($limit_counter<=0){
$limit_counter=self::NUMBER_OF_STOCKS_PER_REQUEST;
array_push($mother, $child);
$child=array();
}
}
return $mother;
}
public static function allEquitiesSignleJSON(){
$equity_arrays=EquityRecords::getSymbols();
$base_url=self::BASE_URL.self::TARGET_QUERY;
$current_time=date("Y-m-d-H-i-s");
$all_equities=array();
// ticker: AAPL, GE, AMD
foreach ($equity_arrays as $ticker_arr) {
$ticker=array_column($ticker_arr, 0);
$equity_url=$base_url . implode("%2C", $ticker) . self::END_POINT;
$raw_eauity_json=file_get_contents($equity_url);
$raw_equity_array=json_decode($raw_eauity_json, true);
$all_equities=array_merge($all_equities, $raw_equity_array);
}
$all_equities_json=json_encode($all_equities);
$symbols_dir= __DIR__ . self::SYMBOLS_DIR;
if (!is_dir($symbols_dir)) {mkdir($symbols_dir, 0755,true);}
$raw_equity_file=$symbols_dir . "/" . $current_time . ".json";
$fp=fopen($raw_equity_file, "x+");
fwrite($fp, $all_equities_json);
fclose($fp);
echo "YAAAY! Equity JSON file success at " . __METHOD__ . " ! 💚 " . self::NEW_LINE;
}
}
Sample CSV:
AAPL 2019-01-04 APPLE INC
AAT 2019-01-04 AMERICAN ASSETS TRUST INC
AAU 2019-01-04 ALMADEN MINERALS LTD - B
AAWW 2019-01-04 ATLAS AIR WORLDWIDE HOLDINGS
AAXJ 2019-01-04 ISHARES MSCI ALL COUNTRY ASI
AAXN 2019-01-04 AXON ENTERPRISE INC
AB 2019-01-04 ALLIANCEBERNSTEIN HOLDING LP
ABAC 2019-01-04 RENMIN TIANLI GROUP INC
ABB 2019-01-04 ABB LTD-SPON ADR
ABBV 2019-01-04 ABBVIE INC
ABC 2019-01-04 AMERISOURCEBERGEN CORP
ABCB 2019-01-04 AMERIS BANCORP
ABDC 2019-01-04 ALCENTRA CAPITAL CORP
ABEO 2019-01-04 ABEONA THERAPEUTICS INC
ABEOW 2019-01-04
ABEV 2019-01-04 AMBEV SA-ADR
ABG 2019-01-04 ASBURY AUTOMOTIVE GROUP
ABIL 2019-01-04 ABILITY INC
ABIO 2019-01-04 ARCA BIOPHARMA INC
ABM 2019-01-04 ABM INDUSTRIES INC
ABMD 2019-01-04 ABIOMED INC
ABR 2019-01-04 ARBOR REALTY TRUST INC
ABR-A 2019-01-04
ABR-B 2019-01-04
ABR-C 2019-01-04
ABT 2019-01-04 ABBOTT LABORATORIES
ABTX 2019-01-04 ALLEGIANCE BANCSHARES INC
ABUS 2019-01-04 ARBUTUS BIOPHARMA CORP
AC 2019-01-04 ASSOCIATED CAPITAL GROUP - A
ACA 2019-01-04 ARCOSA INC
ACAD 2019-01-04 ACADIA PHARMACEUTICALS INC
ACB 2019-01-04 AURORA CANNABIS INC
ACBI 2019-01-04 ATLANTIC CAPITAL BANCSHARES
ACC 2019-01-04 AMERICAN CAMPUS COMMUNITIES
ACCO 2019-01-04 ACCO BRANDS CORP
ACER 2019-01-04 ACER THERAPEUTICS INC
ACES 2019-01-04 ALPS CLEAN ENERGY ETF
ACET 2019-01-04 ACETO CORP
ACGL 2019-01-04 ARCH CAPITAL GROUP LTD
ACGLO 2019-01-04
ACGLP 2019-01-04
ACH 2019-01-04 ALUMINUM CORP OF CHINA-ADR
ACHC 2019-01-04 ACADIA HEALTHCARE CO INC
ACHN 2019-01-04 ACHILLION PHARMACEUTICALS
ACHV 2019-01-04 ACHIEVE LIFE SCIENCES INC
ACIA 2019-01-04 ACACIA COMMUNICATIONS INC
ACIM 2019-01-04 SPDR MSCI ACWI IMI ETF
ACIU 2019-01-04 AC IMMUNE SA
ACIW 2019-01-04 ACI WORLDWIDE INC
ACLS 2019-01-04 AXCELIS TECHNOLOGIES INC
ACM 2019-01-04 AECOM
ACMR 2019-01-04 ACM RESEARCH INC-CLASS A
ACN 2019-01-04 ACCENTURE PLC-CL A
ACNB 2019-01-04 ACNB CORP
ACOR 2019-01-04 ACORDA THERAPEUTICS INC
ACP 2019-01-04 ABERDEEN INCOME CREDIT STRAT
ACRE 2019-01-04 ARES COMMERCIAL REAL ESTATE
ACRS 2019-01-04 ACLARIS THERAPEUTICS INC
ACRX 2019-01-04 ACELRX PHARMACEUTICALS INC
ACSG 2019-01-04 XTRACKERS MSCI ACWI EX USA E
ACSI 2019-01-04 AMERICAN CUSTOMER SATISFACTI
ACST 2019-01-04 ACASTI PHARMA INC
ACT 2019-01-04 ADVISORSHARES VICE ETF
ACTG 2019-01-04 ACACIA RESEARCH CORP
ACU 2019-01-04 ACME UNITED CORP
ACV 2019-01-04 ALLIANZGI DIVERSIFIED INCOME
ACWF 2019-01-04 ISHARES EDGE MSCI MULTIFACTO
ACWI 2019-01-04 ISHARES MSCI ACWI ETF
ACWV 2019-01-04 ISHARES EDGE MSCI MIN VOL GL
ACWX 2019-01-04 ISHARES MSCI ACWI EX US ETF
ACY 2019-01-04 AEROCENTURY CORP
ADAP 2019-01-04 ADAPTIMMUNE THERAPEUTICS-ADR
ADBE 2019-01-04 ADOBE INC
ADC 2019-01-04 AGREE REALTY CORP
ADES 2019-01-04 ADVANCED EMISSIONS SOLUTIONS
ADI 2019-01-04 ANALOG DEVICES INC
ADIL 2019-01-04 ADIAL PHARMACEUTICALS INC
ADILW 2019-01-04
ADM 2019-01-04 ARCHER-DANIELS-MIDLAND CO
ADMA 2019-01-04 ADMA BIOLOGICS INC
ADMP 2019-01-04 ADAMIS PHARMACEUTICALS CORP
ADMS 2019-01-04 ADAMAS PHARMACEUTICALS INC
ADNT 2019-01-04 ADIENT PLC
ADOM 2019-01-04 ADOMANI INC
ADP 2019-01-04 AUTOMATIC DATA PROCESSING
ADRA 2019-01-04 INVESCO BLDRS ASIA 50 ADR IN
ADRD 2019-01-04 INVESCO BLDRS DEVELOPED MARK
ADRE 2019-01-04 INVESCO BLDRS EMERGING MARKE
ADRO 2019-01-04 ADURO BIOTECH INC
ADRU 2019-01-04 INVESCO BLDRS EUROPE SELECT
ADS 2019-01-04 ALLIANCE DATA SYSTEMS CORP
ADSK 2019-01-04 AUTODESK INC
ADSW 2019-01-04 ADVANCED DISPOSAL SERVICES I
ADT 2019-01-04 ADT INC
ADTN 2019-01-04 ADTRAN INC
ADUS 2019-01-04 ADDUS HOMECARE CORP
ADVM 2019-01-04 ADVERUM BIOTECHNOLOGIES INC
ADX 2019-01-04 ADAMS DIVERSIFIED EQUITY
ADXS 2019-01-04 ADVAXIS INC
AE 2019-01-04 ADAMS RESOURCES & ENERGY INC
AEB 2019-01-04
AED 2019-01-04
AEE 2019-01-04 AMEREN CORPORATION
AEF 2019-01-04 ABERDEEN EM MRKT EQTY INC
AEG 2019-01-04 AEGON N.V.-NY REG SHR
AEGN 2019-01-04 AEGION CORP
AEH 2019-01-04
AEHR 2019-01-04 AEHR TEST SYSTEMS
AEIS 2019-01-04 ADVANCED ENERGY INDUSTRIES
AEL 2019-01-04 AMERICAN EQUITY INVT LIFE HL
AEM 2019-01-04 AGNICO EAGLE MINES LTD
AEMD 2019-01-04 AETHLON MEDICAL INC
AEO 2019-01-04 AMERICAN EAGLE OUTFITTERS
AEP 2019-01-04 AMERICAN ELECTRIC POWER
AER 2019-01-04 AERCAP HOLDINGS NV
AERI 2019-01-04 AERIE PHARMACEUTICALS INC
AES 2019-01-04 AES CORP
AETI 2019-01-04 AMERICAN ELECTRIC TECHNOLOGI
AEY 2019-01-04 ADDVANTAGE TECHNOLOGIES GRP
AEYE 2019-01-04 AUDIOEYE INC
AEZS 2019-01-04 AETERNA ZENTARIS INC
AFB 2019-01-04 ALLIANCE NATIONAL MUNI INC
AFC 2019-01-04
AFG 2019-01-04 AMERICAN FINANCIAL GROUP INC
AFGE 2019-01-04
AFGH 2019-01-04
AFH 2019-01-04 ATLAS FINANCIAL HOLDINGS INC
AFHBL 2019-01-04
AFI 2019-01-04 ARMSTRONG FLOORING INC
AFIF 2019-01-04 ANFIELD UNIVERSAL FIXED INCO
AFIN 2019-01-04 AMERICAN FINANCE TRUST INC
AFK 2019-01-04 VANECK VECTORS AFRICA INDEX
AFL 2019-01-04 AFLAC INC
AFMD 2019-01-04 AFFIMED NV
AFSI-A 2019-01-04
AFSI-B 2019-01-04
AFSI-C 2019-01-04
AFSI-D 2019-01-04
AFSI-E 2019-01-04
AFSI-F 2019-01-04
AFSS 2019-01-04
AFST 2019-01-04
AFT 2019-01-04 APOLLO SENIOR FLOATING RATE
AFTY 2019-01-04 CSOP FTSE CHINA A50 ETF
AG 2019-01-04 FIRST MAJESTIC SILVER CORP
AGCO 2019-01-04 AGCO CORP
AGD 2019-01-04 ABERDEEN GLBL DYN DIVID
AGE 2019-01-04 AGEX THERAPEUTICS INC
AGEN 2019-01-04 AGENUS INC
AGF 2019-01-04 DB AGRICULTURE LONG ETN
AGFS 2019-01-04 AGROFRESH SOLUTIONS INC
AGFSW 2019-01-04
AGG 2019-01-04 ISHARES CORE U.S. AGGREGATE
AGGE 2019-01-04 IQ ENHANCED CORE BOND US ETF
AGGP 2019-01-04 IQ ENHANCED CORE PLUS BOND U
AGGY 2019-01-04 WISDOMTREE YIELD ENHANCED US
AGI 2019-01-04 ALAMOS GOLD INC-CLASS A
AGIO 2019-01-04 AGIOS PHARMACEUTICALS INC
AGLE 2019-01-04 AEGLEA BIOTHERAPEUTICS INC
AGM 2019-01-04 FEDERAL AGRIC MTG CORP-CL C
AGM-A 2019-01-04
AGM-B 2019-01-04
AGM-C 2019-01-04
AGM.A 2019-01-04 FEDERAL AGRIC MTG CORP-CL A
AGMH 2019-01-04 AGM GROUP HOLDINGS INC
AGN 2019-01-04 ALLERGAN PLC
AGNC 2019-01-04 AGNC INVESTMENT CORP
AGNCB 2019-01-04
AGNCN 2019-01-04
AGND 2019-01-04 WISDOMTREE TRUST WISDOMTREE
AGO 2019-01-04 ASSURED GUARANTY LTD
AGO-B 2019-01-04
AGO-E 2019-01-04
AGO-F 2019-01-04
AGQ 2019-01-04 PROSHARES ULTRA SILVER
AGR 2019-01-04 AVANGRID INC
AGRO 2019-01-04 ADECOAGRO SA
AGRX 2019-01-04 AGILE THERAPEUTICS INC
AGS 2019-01-04 PLAYAGS INC
AGT 2019-01-04 ISHARES ARGENTINA
AGTC 2019-01-04 APPLIED GENETIC TECHNOLOGIES
AGX 2019-01-04 ARGAN INC
AGYS 2019-01-04 AGILYSYS INC
AGZ 2019-01-04 ISHARES AGENCY BOND ETF
AGZD 2019-01-04 WISDOMTREE TRUST WISDOMTREE
AHC 2019-01-04 A H BELO CORP-A
AHH 2019-01-04 ARMADA HOFFLER PROPERTIES IN
AHL 2019-01-04 ASPEN INSURANCE HOLDINGS LTD
AHL-C 2019-01-04
AHL-D 2019-01-04
AHPI 2019-01-04 ALLIED HEALTHCARE PRODUCTS
AHT 2019-01-04 ASHFORD HOSPITALITY TRUST
AHT-D 2019-01-04
AHT-F 2019-01-04
AHT-G 2019-01-04
AHT-H 2019-01-04
AHT-I 2019-01-04
AI 2019-01-04 ARLINGTON ASSET INVESTMENT-A
AI-B 2019-01-04
AIA 2019-01-04 ISHARES ASIA 50 ETF
AIC 2019-01-04
AIEQ 2019-01-04 AI POWERED EQUITY ETF
AIF 2019-01-04 APOLLO TACTICAL INCOME FUND
AIG 2019-01-04 AMERICAN INTERNATIONAL GROUP
AIG+ 2019-01-04
AIHS 2019-01-04 SENMIAO TECHNOLOGY LTD
AIIQ 2019-01-04 AI POWERED INTERNATIONAL EQU
AIMC 2019-01-04 ALTRA INDUSTRIAL MOTION CORP
AIMT 2019-01-04 AIMMUNE THERAPEUTICS INC
AIN 2019-01-04 ALBANY INTL CORP-CL A
AINC 2019-01-04 ASHFORD INC
AINV 2019-01-04 APOLLO INVESTMENT CORP
AIPT 2019-01-04 PRECISION THERAPEUTICS INC
AIQ 2019-01-04 Global X Future Analytics TE
AIR 2019-01-04 AAR CORP
AIRG 2019-01-04 AIRGAIN INC
AIRI 2019-01-04 AIR INDUSTRIES GROUP
AIRR 2019-01-04 FIRST TRUST RBA AMERICAN IND
AIRT 2019-01-04 AIR T INC
AIT 2019-01-04 APPLIED INDUSTRIAL TECH INC
AIV 2019-01-04 APARTMENT INVT & MGMT CO -A
AIV-A 2019-01-04
AIW 2019-01-04
AIY 2019-01-04
AIZ 2019-01-04 ASSURANT INC
AIZP 2019-01-04
AJG 2019-01-04 ARTHUR J GALLAGHER & CO
AJRD 2019-01-04 AEROJET ROCKETDYNE HOLDINGS
AJX 2019-01-04 GREAT AJAX CORP
AJXA 2019-01-04
AKAM 2019-01-04 AKAMAI TECHNOLOGIES INC
AKAO 2019-01-04 ACHAOGEN INC
AKBA 2019-01-04 AKEBIA THERAPEUTICS INC
AKCA 2019-01-04 AKCEA THERAPEUTICS INC
AKER 2019-01-04 AKERS BIOSCIENCES INC
AKG 2019-01-04 ASANKO GOLD INC
AKO.A 2019-01-04 EMBOTELLADORA ANDINA-ADR A
AKO.B 2019-01-04 EMBOTELLADORA ANDINA-ADR B
AKP 2019-01-04 ALLIANCE CALIF MUNI INCOME
AKR 2019-01-04 ACADIA REALTY TRUST
AKRX 2019-01-04 AKORN INC
AKS 2019-01-04 AK STEEL HOLDING CORP
AKTS 2019-01-04 AKOUSTIS TECHNOLOGIES INC
AKTX 2019-01-04 AKARI THERAPEUTICS PLC-ADR
AL 2019-01-04 AIR LEASE CORP
ALAC 2019-01-04 ALBERTON ACQUISITION CORP
ALACR 2019-01-04 ALBERTON ACQUISITION CO-RTS
ALACU 2019-01-04 ALBERTON ACQUISITION CORP
ALACW 2019-01-04
ALB 2019-01-04 ALBEMARLE CORP
ALBO 2019-01-04 ALBIREO PHARMA INC
ALCO 2019-01-04 ALICO INC
ALD 2019-01-04 WISDOMTREE ASIA LOCAL DEBT
ALDR 2019-01-04 ALDER BIOPHARMACEUTICALS INC
ALDX 2019-01-04 ALDEYRA THERAPEUTICS INC
ALE 2019-01-04 ALLETE INC
ALEX 2019-01-04 ALEXANDER & BALDWIN INC
ALFA 2019-01-04 ALPHACLONE ALTERNATIVE ALPHA
ALG 2019-01-04 ALAMO GROUP INC
ALGN 2019-01-04 ALIGN TECHNOLOGY INC
ALGR 2019-01-04 ALLEGRO MERGER CORP
ALGRR 2019-01-04 ALLEGRO MERGER CORP-RTS
ALGRU 2019-01-04 ALLEGRO MERGER CORP
ALGRW 2019-01-04
ALGT 2019-01-04 ALLEGIANT TRAVEL CO
ALIM 2019-01-04 ALIMERA SCIENCES INC
ALJJ 2019-01-04 ALJ REGIONAL HOLDINGS INC
ALK 2019-01-04 ALASKA AIR GROUP INC
ALKS 2019-01-04 ALKERMES PLC
ALL 2019-01-04 ALLSTATE CORP
ALL-A 2019-01-04
ALL-B 2019-01-04
ALL-D 2019-01-04
ALL-E 2019-01-04
ALL-F 2019-01-04
ALL-G 2019-01-04
ALLE 2019-01-04 ALLEGION PLC
ALLK 2019-01-04 ALLAKOS INC
ALLO 2019-01-04 ALLOGENE THERAPEUTICS INC
ALLT 2019-01-04 ALLOT COMMUNICATIONS LTD
ALLY 2019-01-04 ALLY FINANCIAL INC
ALLY-A 2019-01-04
ALNA 2019-01-04 ALLENA PHARMACEUTICALS INC
ALNY 2019-01-04 ALNYLAM PHARMACEUTICALS INC
ALO 2019-01-04 ALIO GOLD INC
ALOT 2019-01-04 ASTRONOVA INC
ALP-Q 2019-01-04
ALPN 2019-01-04 ALPINE IMMUNE SCIENCES INC
ALQA 2019-01-04 ALLIQUA BIOMEDICAL INC
ALRM 2019-01-04 ALARM.COM HOLDINGS INC
ALRN 2019-01-04 AILERON THERAPEUTICS INC
ALSK 2019-01-04 ALASKA COMM SYSTEMS GROUP
ALSN 2019-01-04 ALLISON TRANSMISSION HOLDING
ALT 2019-01-04 ALTIMMUNE INC
ALTM 2019-01-04 ALTUS MIDSTREAM CO -A
ALTR 2019-01-04 ALTAIR ENGINEERING INC - A
ALTS 2019-01-04 PRSHR MRNGSTR ALT SOL ETF
ALTY 2019-01-04 GLOBAL X SUPERDIVIDEND ALTER
ALV 2019-01-04 AUTOLIV INC
ALX 2019-01-04 ALEXANDER'S INC
ALXN 2019-01-04 ALEXION PHARMACEUTICALS INC
ALYA 2019-01-04 ALITHYA GROUP INC-CLASS A
ALZH 2019-01-04 ALZHEON INC
AM 2019-01-04 ANTERO MIDSTREAM PARTNERS LP
AMAG 2019-01-04 AMAG PHARMACEUTICALS INC
AMAL 2019-01-04 AMALGAMATED BK OF NEW YORK-A
AMAT 2019-01-04 APPLIED MATERIALS INC
AMBA 2019-01-04 AMBARELLA INC
AMBC 2019-01-04 AMBAC FINANCIAL GROUP INC
AMBCW 2019-01-04
AMBO 2019-01-04 AMBOW EDUCATION HOLDING-ADR
AMBR 2019-01-04 AMBER ROAD INC
AMC 2019-01-04 AMC ENTERTAINMENT HLDS-CL A
AMCA 2019-01-04 ISHARES RUSSELL 1000 US REV
AMCI 2019-01-04 AMCI ACQUISITION CORP-CL A
AMCIU 2019-01-04 AMCI ACQUISITION CORP
AMCIW 2019-01-04
AMCN 2019-01-04 AIRMEDIA GROUP INC-ADR
AMCX 2019-01-04 AMC NETWORKS INC-A
AMD 2019-01-04 ADVANCED MICRO DEVICES
AME 2019-01-04 AMETEK INC
AMED 2019-01-04 AMEDISYS INC
AMEH 2019-01-04 APOLLO MEDICAL HOLDINGS INC
AMG 2019-01-04 AFFILIATED MANAGERS GROUP
AMGN 2019-01-04 AMGEN INC
AMGP 2019-01-04 ANTERO MIDSTREAM GP LP
AMH 2019-01-04 AMERICAN HOMES 4 RENT- A
AMH-D 2019-01-04
AMH-E 2019-01-04
AMH-F 2019-01-04
AMH-G 2019-01-04
AMH-H 2019-01-04
AMID 2019-01-04 AMERICAN MIDSTREAM PARTNERS
AMJ 2019-01-04 JPMORGAN ALERIAN MLP INDEX
AMJL 2019-01-04 X-LINKS 2XLEVRG ALERIAN MLP
AMKR 2019-01-04 AMKOR TECHNOLOGY INC
AMLP 2019-01-04 ALERIAN MLP ETF
AMMA 2019-01-04 ALLIANCE MMA INC
AMN 2019-01-04 AMN HEALTHCARE SERVICES INC
AMNB 2019-01-04 AMER NATL BNKSHS/DANVILLE VA
AMOT 2019-01-04 ALLIED MOTION TECHNOLOGIES
AMOV 2019-01-04 AMERICA MOVIL-ADR SERIES A
AMP 2019-01-04 AMERIPRISE FINANCIAL INC
AMPE 2019-01-04 AMPIO PHARMACEUTICALS INC
AMPH 2019-01-04 AMPHASTAR PHARMACEUTICALS IN
AMR 2019-01-04 ALTA MESA RESOURCES INC-A
AMRB 2019-01-04 AMERICAN RIVER BANKSHRS (CA)
AMRC 2019-01-04 AMERESCO INC-CL A
AMRH 2019-01-04 AMERI HOLDINGS INC
AMRHW 2019-01-04
AMRK 2019-01-04 A-MARK PRECIOUS METALS INC
AMRN 2019-01-04 AMARIN CORP PLC -ADR
AMRS 2019-01-04 AMYRIS INC
AMRWW 2019-01-04
AMRX 2019-01-04 AMNEAL PHARMACEUTICALS INC
AMS 2019-01-04 AMERICAN SHARED HOSPITAL SER
AMSC 2019-01-04 AMERICAN SUPERCONDUCTOR CORP
AMSF 2019-01-04 AMERISAFE INC
AMSWA 2019-01-04 AMERICAN SOFTWARE INC-CL A
AMT 2019-01-04 AMERICAN TOWER CORP
AMTB 2019-01-04 MERCANTIL BANK HOLDING COR-A
AMTBB 2019-01-04 MERCANTIL BANK HOLDING COR-B
AMTD 2019-01-04 TD AMERITRADE HOLDING CORP
AMTX 2019-01-04 AEMETIS INC
AMU 2019-01-04 ETRACS ALERIAN MLP ETN
AMUB 2019-01-04 ETRACS ALERIAN MLP IND SER B
AMWD 2019-01-04 AMERICAN WOODMARK CORP
AMX 2019-01-04 AMERICA MOVIL-SPN ADR CL L
AMZA 2019-01-04 INFRACAP MLP ETF
AMZN 2019-01-04 AMAZON.COM INC
AN 2019-01-04 AUTONATION INC
ANAB 2019-01-04 ANAPTYSBIO INC
ANAT 2019-01-04 AMERICAN NATIONAL INSURANCE
ANCX 2019-01-04 ACCESS NATIONAL CORP
ANDE 2019-01-04 ANDERSONS INC/THE
ANDX 2019-01-04 ANDEAVOR LOGISTICS LP
ANET 2019-01-04 ARISTA NETWORKS INC
ANF 2019-01-04 ABERCROMBIE & FITCH CO-CL A
ANFI 2019-01-04 AMIRA NATURE FOODS LTD
ANGI 2019-01-04 ANGI HOMESERVICES INC- A
ANGL 2019-01-04 VANECK VECTORS FALLEN ANGEL
ANGO 2019-01-04 ANGIODYNAMICS INC
ANH 2019-01-04 ANWORTH MORTGAGE ASSET CORP
ANH-A 2019-01-04
ANH-B 2019-01-04
ANH-C 2019-01-04
ANIK 2019-01-04 ANIKA THERAPEUTICS INC
ANIP 2019-01-04 ANI PHARMACEUTICALS INC
ANIX 2019-01-04 ANIXA BIOSCIENCES INC
ANSS 2019-01-04 ANSYS INC
ANTM 2019-01-04 ANTHEM INC
ANY 2019-01-04 SPHERE 3D CORP
AOA 2019-01-04 ISHARES CORE AGGRESSIVE ALLO
AOBC 2019-01-04 AMERICAN OUTDOOR BRANDS CORP
AOD 2019-01-04 ABERDEEN TTL DYN DIVID
AOK 2019-01-04 ISHARES CORE CONSERVATIVE AL
AOM 2019-01-04 ISHARES CORE MODERATE ALLOCA
AON 2019-01-04 AON PLC
AOR 2019-01-04 ISHARES CORE GROWTH ALLOCATI
AOS 2019-01-04 SMITH (A.O.) CORP
AOSL 2019-01-04 ALPHA & OMEGA SEMICONDUCTOR
AP 2019-01-04 AMPCO-PITTSBURGH CORP
APA 2019-01-04 APACHE CORP
APAM 2019-01-04 ARTISAN PARTNERS ASSET MA -A
APB 2019-01-04 ASIA PACIFIC FUND INC
APC 2019-01-04 ANADARKO PETROLEUM CORP
APD 2019-01-04 AIR PRODUCTS & CHEMICALS INC
APDN 2019-01-04 APPLIED DNA SCIENCES INC
APDNW 2019-01-04
APEI 2019-01-04 AMERICAN PUBLIC EDUCATION
APEN 2019-01-04 APOLLO ENDOSURGERY INC
APF 2019-01-04 MORGAN STANLEY ASIA PACIFIC
APH 2019-01-04 AMPHENOL CORP-CL A
APHA 2019-01-04 APHRIA INC
APHB 2019-01-04 AMPLIPHI BIOSCIENCES CORP
APLE 2019-01-04 APPLE HOSPITALITY REIT INC
APLS 2019-01-04 APELLIS PHARMACEUTICALS INC
APM 2019-01-04 APTORUM GROUP LTD-CLASS A
APO 2019-01-04 APOLLO GLOBAL MANAGEMENT - A
APO-A 2019-01-04
APO-B 2019-01-04
APOG 2019-01-04 APOGEE ENTERPRISES INC
APOP 2019-01-04 CELLECT BIOTECHNOLOGY LT-ADR
APOPW 2019-01-04
APPF 2019-01-04 APPFOLIO INC - A
APPN 2019-01-04 APPIAN CORP
APPS 2019-01-04 DIGITAL TURBINE INC
APRI 2019-01-04 APRICUS BIOSCIENCES INC
APRN 2019-01-04 BLUE APRON HOLDINGS INC-A
APT 2019-01-04 ALPHA PRO TECH LTD
APTI 2019-01-04 APPTIO INC - CLASS A
APTO 2019-01-04 APTOSE BIOSCIENCES INC
APTS 2019-01-04 PREFERRED APARTMENT COMMUN-A
APTV 2019-01-04 APTIV PLC
APTX 2019-01-04 APTINYX INC
APU 2019-01-04 AMERIGAS PARTNERS-LP
APVO 2019-01-04 APTEVO THERAPEUTICS INC
APWC 2019-01-04 ASIA PACIFIC WIRE & CABLE
APY 2019-01-04 APERGY CORP
APYX 2019-01-04 APYX MEDICAL CORP
AQ 2019-01-04 AQUANTIA CORP
AQB 2019-01-04 AQUABOUNTY TECHNOLOGIES
AQMS 2019-01-04 AQUA METALS INC
AQN 2019-01-04 ALGONQUIN POWER & UTILITIES
AQNA 2019-01-04
AQST 2019-01-04 AQUESTIVE THERAPEUTICS INC
AQUA 2019-01-04 EVOQUA WATER TECHNOLOGIES CO
AQXP 2019-01-04 AQUINOX PHARMACEUTICALS INC
AR 2019-01-04 ANTERO RESOURCES CORP
ARA 2019-01-04 AMERICAN RENAL ASSOCIATES HO
ARAV 2019-01-04 ARAVIVE INC
ARAY 2019-01-04 ACCURAY INC
ARC 2019-01-04 ARC DOCUMENT SOLUTIONS INC
ARCB 2019-01-04 ARCBEST CORP
ARCC 2019-01-04 ARES CAPITAL CORP
ARCE 2019-01-04 ARCO PLATFORM LTD - CLASS A
ARCH 2019-01-04 ARCH COAL INC - A
ARCI 2019-01-04 APPLIANCE RECYCLING CTRS AMR
ARCM 2019-01-04 ARROW RESERVE CAP MANAG ETF
ARCO 2019-01-04 ARCOS DORADOS HOLDINGS INC-A
ARCT 2019-01-04 ARCTURUS THERAPEUTICS LTD
ARCW 2019-01-04 ARC GROUP WORLDWIDE INC
ARD 2019-01-04 ARDAGH GROUP SA
ARDC 2019-01-04 ARES DYNAMIC CREDIT ALLOCATI
ARDM 2019-01-04 ARADIGM CORP
ARDS 2019-01-04 ARIDIS PHARMACEUTICALS INC
ARDX 2019-01-04 ARDELYX INC
ARE 2019-01-04 ALEXANDRIA REAL ESTATE EQUIT
ARE-D 2019-01-04
ARES 2019-01-04 ARES MANAGEMENT CORP - A
ARES-A 2019-01-04
AREX 2019-01-04 APPROACH RESOURCES INC
ARGD 2019-01-04
ARGO 2019-01-04 ARGO GROUP INTERNATIONAL
ARGT 2019-01-04 GLOBAL X MSCI ARGENTINA ETF
ARGX 2019-01-04 ARGENX SE - ADR
ARI 2019-01-04 APOLLO COMMERCIAL REAL ESTAT
ARI-C 2019-01-04
ARKG 2019-01-04 ARK GENOMIC REVL MULT-SECTOR
ARKK 2019-01-04 ARK INNOVATION ETF
ARKQ 2019-01-04 ARK INDUSTRIAL INNOVATION
ARKR 2019-01-04 ARK RESTAURANTS CORP
ARKW 2019-01-04 ARK WEB X.O ETF
ARL 2019-01-04 AMERICAN REALTY INVESTORS IN
ARLO 2019-01-04 ARLO TECHNOLOGIES INC
ARLP 2019-01-04 ALLIANCE RESOURCE PARTNERS
ARMK 2019-01-04 ARAMARK
ARNA 2019-01-04 ARENA PHARMACEUTICALS INC
ARNC 2019-01-04 ARCONIC INC
ARNC- 2019-01-04
AROC 2019-01-04 ARCHROCK INC
AROW 2019-01-04 ARROW FINANCIAL CORP
ARPO 2019-01-04 AERPIO PHARMACEUTICALS INC
ARQL 2019-01-04 ARQULE INC
ARR 2019-01-04 ARMOUR RESIDENTIAL REIT INC
ARR-A 2019-01-04
ARR-B 2019-01-04
ARRS 2019-01-04 ARRIS INTERNATIONAL PLC
ARRY 2019-01-04 ARRAY BIOPHARMA INC
ARTNA 2019-01-04 ARTESIAN RESOURCES CORP-CL A
ARTW 2019-01-04 ART'S-WAY MANUFACTURING CO
ARTX 2019-01-04 AROTECH CORP
ARVN 2019-01-04 ARVINAS INC
ARW 2019-01-04 ARROW ELECTRONICS INC
ARWR 2019-01-04 ARROWHEAD PHARMACEUTICALS IN
ARYA 2019-01-04 ARYA SCIENCES ACQUISITION-A
ARYAU 2019-01-04 ARYA SCIENCES ACQUISITION CO
ARYAW 2019-01-04
ASA 2019-01-04 ASA GOLD AND PRECIOUS METALS
ASB 2019-01-04 ASSOCIATED BANC-CORP
ASB-C 2019-01-04
ASB-D 2019-01-04
ASB-E 2019-01-04
ASC 2019-01-04 ARDMORE SHIPPING CORP
ASCMA 2019-01-04 ASCENT CAPITAL GROUP INC-A
ASEA 2019-01-04 GLOBAL X FTSE SOUTHEAST ASIA
ASET 2019-01-04 FLEXSHARES REAL ASSETS FUND
ASFI 2019-01-04 ASTA FUNDING INC
ASG 2019-01-04 LIBERTY ALL-STAR GROWTH FD
ASGN 2019-01-04 ASGN INC
ASH 2019-01-04 ASHLAND GLOBAL HOLDINGS INC
ASHR 2019-01-04 XTRACKERS HARVEST CSI 300 CH
ASHS 2019-01-04 XTRACKERS HARVEST CSI 500 CH
ASHX 2019-01-04 XTRACKERS MSCI CHINA A INCLU
ASIX 2019-01-04 ADVANSIX INC
ASLN 2019-01-04 ASLAN PHARMACEUTICALS LT-ADR
ASM 2019-01-04 AVINO SILVER & GOLD MINES
ASMB 2019-01-04 ASSEMBLY BIOSCIENCES INC
ASML 2019-01-04 ASML HOLDING NV-NY REG SHS
ASNA 2019-01-04 ASCENA RETAIL GROUP INC
ASND 2019-01-04 ASCENDIS PHARMA A/S - ADR
ASNS 2019-01-04 ARSANIS INC
ASPN 2019-01-04 ASPEN AEROGELS INC
ASPS 2019-01-04 ALTISOURCE PORTFOLIO SOL
ASPU 2019-01-04 ASPEN GROUP INC
ASR 2019-01-04 GRUPO AEROPORTUARIO SUR-ADR
ASRT 2019-01-04 ASSERTIO THERAPEUTICS INC
ASRV 2019-01-04 AMERISERV FINANCIAL INC
ASRVP 2019-01-04
AST 2019-01-04 ASTERIAS BIOTHERAPEUTICS
ASTC 2019-01-04 ASTROTECH CORP
ASTE 2019-01-04 ASTEC INDUSTRIES INC
ASUR 2019-01-04 ASURE SOFTWARE INC
ASV 2019-01-04 ASV HOLDINGS INC
ASX 2019-01-04 ASE TECHNOLOGY HOLDING -ADR
ASYS 2019-01-04 AMTECH SYSTEMS INC
AT 2019-01-04 ATLANTIC POWER CORP
ATAI 2019-01-04 ATA INC-ADR
ATAX 2019-01-04 AMERICA FIRST MULTIFAMILY IN
ATEC 2019-01-04 ALPHATEC HOLDINGS INC
ATEN 2019-01-04 A10 NETWORKS INC
ATGE 2019-01-04 ADTALEM GLOBAL EDUCATION INC
ATH 2019-01-04 ATHENE HOLDING LTD-CLASS A
ATHM 2019-01-04 AUTOHOME INC-ADR
ATHN 2019-01-04 ATHENAHEALTH INC
ATHX 2019-01-04 ATHERSYS INC
ATI 2019-01-04 ALLEGHENY TECHNOLOGIES INC
ATIS 2019-01-04 ATTIS INDUSTRIES INC
ATISW 2019-01-04
ATKR 2019-01-04 ATKORE INTERNATIONAL GROUP I
ATLC 2019-01-04 ATLANTICUS HOLDINGS CORP
ATLO 2019-01-04 AMES NATIONAL CORP
ATMP 2019-01-04 BARCLAYS ETN+ SELECT MLP ETN
ATNI 2019-01-04 ATN INTERNATIONAL INC
ATNM 2019-01-04 ACTINIUM PHARMACEUTICALS INC
ATNX 2019-01-04 ATHENEX INC
ATO 2019-01-04 ATMOS ENERGY CORP
ATOM 2019-01-04 ATOMERA INC
ATOS 2019-01-04 ATOSSA GENETICS INC
ATR 2019-01-04 APTARGROUP INC
ATRA 2019-01-04 ATARA BIOTHERAPEUTICS INC
ATRC 2019-01-04 ATRICURE INC
ATRI 2019-01-04 ATRION CORPORATION
ATRO 2019-01-04 ASTRONICS CORP
ATRS 2019-01-04 ANTARES PHARMA INC
ATSG 2019-01-04 AIR TRANSPORT SERVICES GROUP
ATTO 2019-01-04 ATENTO SA
ATTU 2019-01-04 ATTUNITY LTD
ATU 2019-01-04 ACTUANT CORP-A
ATUS 2019-01-04 ALTICE USA INC- A
ATV 2019-01-04 ACORN INTERNATIONAL INC-ADR
ATVI 2019-01-04 ACTIVISION BLIZZARD INC
ATXI 2019-01-04 AVENUE THERAPEUTICS INC
AU 2019-01-04 ANGLOGOLD ASHANTI-SPON ADR
AUBN 2019-01-04 AUBURN NATL BANCORPORATION
AUDC 2019-01-04 AUDIOCODES LTD
AUG 2019-01-04 AURYN RESOURCES INC
AUGR 2019-01-04 DEFIANCE FUTURE TECH ETF
AUMN 2019-01-04 GOLDEN MINERALS CO
AUO 2019-01-04 AU OPTRONICS CORP-SPON ADR
AUPH 2019-01-04 AURINIA PHARMACEUTICALS INC
AUSE 2019-01-04 WISDOMTREE AUSTRALIA DIVIDEN
AUSF 2019-01-04 GLOBAL X ADAPTIVE US FACTOR
AUTL 2019-01-04 AUTOLUS THERAPEUTICS PLC
AUTO 2019-01-04 AUTOWEB INC
AUY 2019-01-04 YAMANA GOLD INC
AVA 2019-01-04 AVISTA CORP
AVAL 2019-01-04 GRUPO AVAL ACCIONES Y VALORE
AVAV 2019-01-04 AEROVIRONMENT INC
AVB 2019-01-04 AVALONBAY COMMUNITIES INC
AVCO 2019-01-04 AVALON GLOBOCARE CORP
AVD 2019-01-04 AMERICAN VANGUARD CORP
AVDL 2019-01-04 AVADEL PHARMACEUTICALS PLC
AVEO 2019-01-04 AVEO PHARMACEUTICALS INC
AVGO 2019-01-04 BROADCOM INC
AVGR 2019-01-04 AVINGER INC
AVH 2019-01-04 AVIANCA HOLDINGS SA-SPON ADR
AVID 2019-01-04 AVID TECHNOLOGY INC
AVK 2019-01-04 ADVENT CLAYMORE CVT SEC& INC
AVLR 2019-01-04 AVALARA INC
AVNS 2019-01-04 AVANOS MEDICAL INC
AVNW 2019-01-04 AVIAT NETWORKS INC
AVP 2019-01-04 AVON PRODUCTS INC
AVRO 2019-01-04 AVROBIO INC
AVT 2019-01-04 AVNET INC
AVX 2019-01-04 AVX CORP
AVXL 2019-01-04 ANAVEX LIFE SCIENCES CORP
AVY 2019-01-04 AVERY DENNISON CORP
AVYA 2019-01-04 AVAYA HOLDINGS CORP
AWF 2019-01-04 ALLIANCEBERNSTEIN GL HI INC
AWI 2019-01-04 ARMSTRONG WORLD INDUSTRIES
AWK 2019-01-04 AMERICAN WATER WORKS CO INC
AWP 2019-01-04 ABERDEEN GLBL PREM PROP
AWR 2019-01-04 AMERICAN STATES WATER CO
AWRE 2019-01-04 AWARE INC/MASS
AWSM 2019-01-04 COOL HOLDINGS INC
AWX 2019-01-04 AVALON HOLDINGS CORP-A
AX 2019-01-04 AXOS FINANCIAL INC
AXAS 2019-01-04 ABRAXAS PETROLEUM CORP
AXDX 2019-01-04 ACCELERATE DIAGNOSTICS INC
AXE 2019-01-04 ANIXTER INTERNATIONAL INC
AXGN 2019-01-04 AXOGEN INC
AXJL 2019-01-04 WISDOMTREE ASIA-PACIFIC EX-J
AXJV 2019-01-04 ISHARES EDGE MSCI MIN VOL AS
AXL 2019-01-04 AMERICAN AXLE & MFG HOLDINGS
AXNX 2019-01-04 AXONICS MODULATION TECHNOLOG
AXO 2019-01-04
AXON 2019-01-04 AXOVANT SCIENCES LTD
AXP 2019-01-04 AMERICAN EXPRESS CO
AXR 2019-01-04 AMREP CORP
AXS 2019-01-04 AXIS CAPITAL HOLDINGS LTD
AXS-D 2019-01-04
AXS-E 2019-01-04
AXSM 2019-01-04 AXSOME THERAPEUTICS INC
AXTA 2019-01-04 AXALTA COATING SYSTEMS LTD
AXTI 2019-01-04 AXT INC
AXU 2019-01-04 ALEXCO RESOURCE CORP
AY 2019-01-04 ATLANTICA YIELD PLC
AYI 2019-01-04 ACUITY BRANDS INC
AYR 2019-01-04 AIRCASTLE LTD
AYTU 2019-01-04 AYTU BIOSCIENCE INC
AYX 2019-01-04 ALTERYX INC - CLASS A
AZN 2019-01-04 ASTRAZENECA PLC-SPONS ADR
performance beginner php file-system api
performance beginner php file-system api
edited 1 hour ago
Jamal♦
30.4k11121227
30.4k11121227
asked Mar 16 at 5:50
EmmaEmma
196112
196112
1
$begingroup$
Could you let your IDE format the code consistently? That would free us from mentioning this boring topic in the code review.
$endgroup$
– Roland Illig
3 hours ago
$begingroup$
@RolandIllig Hi Roland, Thanks for your comment, actually, I'm not a developer/programmer, never used an IDE before. Sometimes, I write on a paper or a text-editor such as Sublime. Not really know much about formatting. I surely understand, this is just a small project. Thank You!
$endgroup$
– Emma
3 hours ago
add a comment |
1
$begingroup$
Could you let your IDE format the code consistently? That would free us from mentioning this boring topic in the code review.
$endgroup$
– Roland Illig
3 hours ago
$begingroup$
@RolandIllig Hi Roland, Thanks for your comment, actually, I'm not a developer/programmer, never used an IDE before. Sometimes, I write on a paper or a text-editor such as Sublime. Not really know much about formatting. I surely understand, this is just a small project. Thank You!
$endgroup$
– Emma
3 hours ago
1
1
$begingroup$
Could you let your IDE format the code consistently? That would free us from mentioning this boring topic in the code review.
$endgroup$
– Roland Illig
3 hours ago
$begingroup$
Could you let your IDE format the code consistently? That would free us from mentioning this boring topic in the code review.
$endgroup$
– Roland Illig
3 hours ago
$begingroup$
@RolandIllig Hi Roland, Thanks for your comment, actually, I'm not a developer/programmer, never used an IDE before. Sometimes, I write on a paper or a text-editor such as Sublime. Not really know much about formatting. I surely understand, this is just a small project. Thank You!
$endgroup$
– Emma
3 hours ago
$begingroup$
@RolandIllig Hi Roland, Thanks for your comment, actually, I'm not a developer/programmer, never used an IDE before. Sometimes, I write on a paper or a text-editor such as Sublime. Not really know much about formatting. I surely understand, this is just a small project. Thank You!
$endgroup$
– Emma
3 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
});
});
}, "mathjax-editing");
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "196"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f215553%2f8k-arrays-with-80-http-requests-and-write-all-arrays-in-a-json-file-50mb-150%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Code Review Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f215553%2f8k-arrays-with-80-http-requests-and-write-all-arrays-in-a-json-file-50mb-150%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
$begingroup$
Could you let your IDE format the code consistently? That would free us from mentioning this boring topic in the code review.
$endgroup$
– Roland Illig
3 hours ago
$begingroup$
@RolandIllig Hi Roland, Thanks for your comment, actually, I'm not a developer/programmer, never used an IDE before. Sometimes, I write on a paper or a text-editor such as Sublime. Not really know much about formatting. I surely understand, this is just a small project. Thank You!
$endgroup$
– Emma
3 hours ago