public function setUp()
 {
     parent::setUp();
     $obj = (object) ["AccountGuid" => "66dcac65-bf07-4e68-ad46-838f51100424", "AccountStatus" => "Active", "AvailableBalance" => 45.334, "CurrencyCode" => "Xbt", "TotalBalance" => 46.81];
     $this->account = Account::createFromObject($obj);
 }
 public function setUp()
 {
     parent::setUp();
     $obj = (object) ["BuyOrders" => [(object) ["OrderType" => "LimitBid", "Price" => 497.02, "Volume" => 0.01], (object) ["OrderType" => "LimitBid", "Price" => 490.0, "Volume" => 1.0]], "CreatedTimestampUtc" => "2014-08-05T06:42:11.3032208Z", "PrimaryCurrencyCode" => "Xbt", "SecondaryCurrencyCode" => "Usd", "SellOrders" => [(object) ["OrderType" => "LimitOffer", "Price" => 500.0, "Volume" => 1.0], (object) ["OrderType" => "LimitOffer", "Price" => 505.0, "Volume" => 1.0]]];
     $this->order = OrderBook::createFromObject($obj);
 }
 public function setUp()
 {
     parent::setUp();
     $config = $this->getConfig();
     $this->client = new PrivateClient($config['API_KEY'], $config['API_SECRET']);
 }
 public function setUp()
 {
     parent::setUp();
     $obj = (object) ["CreatedTimestampUtc" => "2014-08-05T06:42:11.3032208Z", "CurrentHighestBidPrice" => 500.0, "CurrentLowestOfferPrice" => 1001.0, "DayAvgPrice" => 510.0, "DayHighestPrice" => 515.0, "DayLowestPrice" => 509.0, "DayVolumeXbt" => 2.0, "LastPrice" => 511.0, "PrimaryCurrencyCode" => "Xbt", "SecondaryCurrencyCode" => "Usd"];
     $this->marketSummary = MarketSummary::createFromObject($obj);
 }
 public function setUp()
 {
     parent::setUp();
     $obj = (object) ["BitcoinAddress" => "12a7FbBzSGvJd36wNesAxAksLXMWm4oLUJ", "LastCheckedTimestampUtc" => "2014-05-05T09:35:22.4032405Z", "NextUpdateTimestampUtc" => "2014-05-05T09:45:22.4032405Z"];
     $this->address = BitcoinDepositAddress::createFromObject($obj);
 }
 public function setUp()
 {
     parent::setUp();
     $this->client = new PublicClient();
 }
 public function setUp()
 {
     parent::setUp();
     $obj = (object) ["CreatedTimestampUtc" => "2014-08-05T06:42:11.3032208Z", "EstimatedValue" => 10006.31, "OrderGuid" => "dd015a29-8f73-4469-a5fa-ea91544dfcda", "OrderType" => "LimitOffer", "Outstanding" => 21.45621, "Price" => 466.36, "PrimaryCurrencyCode" => "Xbt", "SecondaryCurrencyCode" => "Usd", "Status" => "Open", "Volume" => 21.45621];
     $this->order = OpenOrder::createFromObject($obj);
 }
 public function setUp()
 {
     parent::setUp();
     $obj = (object) ["CreatedTimestampUtc" => "2014-08-05T06:42:11.3032208Z", "OrderGuid" => "719c495c-a39e-4884-93ac-280b37245037", "Price" => 485.76, "PrimaryCurrencyCode" => "Xbt", "ReservedAmount" => 0.358, "SecondaryCurrencyCode" => "Usd", "Status" => "Open", "Type" => "LimitOffer", "VolumeFilled" => 0, "VolumeOrdered" => 0.358];
     $this->order = Order::createFromObject($obj);
 }
 public function setUp()
 {
     parent::setUp();
     $obj = (object) ["OrderType" => "LimitBid", "Price" => 497.02, "Volume" => 0.01];
     $this->order = SimpleOrder::createFromObject($obj);
 }
 public function setUp()
 {
     parent::setUp();
     $obj = (object) ["CreatedTimestampUtc" => "2014-08-05T09:02:57.5440691Z", "HistorySummaryItems" => [(object) ["AverageSecondaryCurrencyPrice" => 510.0, "ClosingSecondaryCurrencyPrice" => 510.0, "StartTimestampUtc" => "2014-08-04T09:00:00Z", "EndTimestampUtc" => "2014-08-04T10:00:00Z", "HighestSecondaryCurrencyPrice" => 510.0, "LowestSecondaryCurrencyPrice" => 510.0, "NumberOfTrades" => 0, "OpeningSecondaryCurrencyPrice" => 510.0, "PrimaryCurrencyVolume" => 0.0, "SecondaryCurrencyVolume" => 0.0], (object) ["AverageSecondaryCurrencyPrice" => 510.0, "ClosingSecondaryCurrencyPrice" => 510.0, "StartTimestampUtc" => "2014-08-04T09:00:00Z", "EndTimestampUtc" => "2014-08-04T10:00:00Z", "HighestSecondaryCurrencyPrice" => 510.0, "LowestSecondaryCurrencyPrice" => 510.0, "NumberOfTrades" => 0, "OpeningSecondaryCurrencyPrice" => 510.0, "PrimaryCurrencyVolume" => 0.0, "SecondaryCurrencyVolume" => 0.0]], "NumberOfHoursInThePastToRetrieve" => 1, "PrimaryCurrencyCode" => "Xbt", "SecondaryCurrencyCode" => "Usd"];
     $this->tradeHistorySummary = TradeHistorySummary::createFromObject($obj);
 }
 public function setUp()
 {
     parent::setUp();
     $this->iterator = new PagedIterator1();
 }
 public function setUp()
 {
     parent::setUp();
     $obj = (object) ["AvgPrice" => 698.8, "CreatedTimestampUtc" => "2014-08-05T06:42:11.3032208Z", "OrderGuid" => "5c8885cd-5384-4e05-b397-9f5119353e10", "OrderType" => "MarketOffer", "Outstanding" => 0, "PrimaryCurrencyCode" => "Xbt", "SecondaryCurrencyCode" => "Usd", "Status" => "Filled", "Value" => 17.47, "Volume" => 0.025];
     $this->order = ClosedOrder::createFromObject($obj);
 }
 public function setUp()
 {
     parent::setUp();
     $obj = (object) ["Balance" => 199954.27, "BitcoinTransactionId" => null, "BitcoinTransactionOutputIndex" => null, "Comment" => null, "CreatedTimestampUtc" => "2014-08-03T05:33:48.2354125Z", "Credit" => null, "CurrencyCode" => "Usd", "Debit" => 6.98, "SettleTimestampUtc" => "2014-08-03T05:36:24.5532653Z", "Status" => "Confirmed", "Type" => "Brokerage"];
     $this->transaction = Transaction::createFromObject($obj);
 }
 public function setUp()
 {
     parent::setUp();
     $obj = (object) ["FiatWithdrawalRequestGuid" => "2e9ad56c-1954-4b0f-b3d8-2ade7fad93ff", "AccountGuid" => "eda82a84-57fe-4ce6-9ee5-45a41063ee23", "Status" => "Pending", "CreatedTimestampUtc" => "2014-12-18T14:08:47.4032405Z", "TotalWithdrawalAmount" => 50.0, "FeeAmount" => 20.0, "Currency" => "Usd"];
     $this->withdrawal = FiatWithdrawal::createFromObject($obj);
 }
 public function setUp()
 {
     parent::setUp();
     $obj = (object) ["CurrencyCodeA" => "Aud", "CurrencyCodeB" => "Usd", "Rate" => 0.8683];
     $this->fxRate = FxRate::createFromObject($obj);
 }
 public function setUp()
 {
     parent::setUp();
     $obj = (object) ["PrimaryCurrencyAmount" => 1.0, "SecondaryCurrencyTradePrice" => 510.0, "TradeTimestampUtc" => "2014-07-31T10:34:05.935412Z"];
     $this->trade = Trade::createFromObject($obj);
 }
 public function setUp()
 {
     parent::setUp();
     $obj = (object) ["CreatedTimestampUtc" => "2014-08-05T09:14:39.4830696Z", "PrimaryCurrencyCode" => "Xbt", "SecondaryCurrencyCode" => "Usd", "Trades" => [(object) ["PrimaryCurrencyAmount" => 1.0, "SecondaryCurrencyTradePrice" => 510.0, "TradeTimestampUtc" => "2014-07-31T10:34:05.935412Z"], (object) ["PrimaryCurrencyAmount" => 0.01, "SecondaryCurrencyTradePrice" => 501.0, "TradeTimestampUtc" => "2014-07-31T10:33:24.8458426Z"]]];
     $this->recentTrades = RecentTrades::createFromObject($obj);
 }