Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/nandedex/www/wp-content/plugins11/financial-pack-pro/api/examples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : /home/nandedex/www/wp-content/plugins11/financial-pack-pro/api/examples/iextrading.php
<?php

$abspath = realpath( str_repeat( '../', 5 ) );

require $abspath . '/wp-load.php';

/**
 * @var BS_Financial_Stock_Service $api
 */
$api = bsfp_api_instance( 'iextrading' );

if ( ! $api ) {
	die( "<h1>Error :-/  cannot connect to iextrading</h1>" );
}


$api->set_companies( array( 'aapl', 'fb', 'goog' ) );
$api->set_currencies( array( 'USD', 'IRR', 'GBP', 'EUR' ) );


$results = $api->get( array(
	//	'daily_history'   => array(), // arguments
	'hourly_history'  => array(),
	'changes_average' => array(),
	'statistics'      => array(),
	'logo'            => array(),
	'prices'          => array(),
) );

bf_var_dump_exit( $results );


try {

	//	bf_var_dump( $api->prices() );

	//	bf_var_dump( $api->logo_list() );

	//	bf_var_dump( $api->statistics() );

	//	bf_var_dump( $api->changes_average() );

	//	bf_var_dump( $api->hourly_history() );

	//	bf_var_dump( $api->daily_history() );


} catch( Exception $e ) {

	var_dump( $e->getMessage() );
	exit;
}




F1le Man4ger