Example #1
0
        public async Task WhenRequestingTheLast15DaysOfTransactionsThenTheyArePossibleToParseAsync()
        {
            InsideTradeRegistryApi api = new InsideTradeRegistryApi();
            var transactions           = await api.GetInsideTradeTransactionsAsync(new SearchQuery
            {
                PublicationDateFrom = DateTime.Now.AddDays(-15)
            });

            Assert.AreNotEqual(0, transactions.Count);
        }
Example #2
0
        static void Main()
        {
            IInsideTradeRegistryApi api = new InsideTradeRegistryApi();

            var transactions = api.GetInsideTradeTransactionsAsync(new SearchQuery
            {
                Issuer              = "Investor",
                PDMRPerson          = "Johan Forssell",
                PublicationDateFrom = DateTime.Parse("2018-01-01")
            }).GetAwaiter().GetResult();
        }
Example #3
0
        public async Task VerifyOldKnownHexagonTransactionAsync()
        {
            InsideTradeRegistryApi api = new InsideTradeRegistryApi();
            var transactions           = await api.GetInsideTradeTransactionsAsync(new SearchQuery
            {
                Issuer = "Hexagon AB",
                PublicationDateFrom = ToDateTime("2016-01-01 00:00:00"),
                PublicationDateTo   = ToDateTime("2016-07-05 00:00:00")
            });

            Assert.AreEqual(1, transactions.Count);
            var transaction = transactions.First();

            Assert.AreEqual(ToDateTime("2016-07-04 14:04:27"), transaction.PublicationDate);
            Assert.AreEqual("Hexagon AB", transaction.Issuer);
            Assert.AreEqual("549300WJFW6ILNI4TA80", transaction.LEICode);
            Assert.AreEqual("Melker Schörling AB", transaction.Notifier);
            Assert.AreEqual("Melker Schörling", transaction.Person);
            Assert.AreEqual("Styrelseledamot/suppleant", transaction.Position);
            Assert.IsTrue(transaction.CloselyAssociated);
            Assert.IsFalse(transaction.Amendment);
            Assert.AreEqual("", transaction.DetailsOfAmendment);
            Assert.IsTrue(transaction.InitialNotification);
            Assert.IsFalse(transaction.PartOfShareOptionProgramme);
            Assert.AreEqual("Acquisition", transaction.NatureOfTransaction);
            Assert.AreEqual("Hexagon AB Företagscertifikat", transaction.InstrumentName);
            Assert.AreEqual("", transaction.InstrumentType);
            Assert.AreEqual("SE0008613608", transaction.ISIN);
            Assert.AreEqual(ToDateTime("2016-07-04 00:00:00"), transaction.TransactionDate);
            Assert.AreEqual(649833931, transaction.Volume);
            Assert.AreEqual("Amount", transaction.Unit);
            Assert.AreEqual(649833931, transaction.Price);
            Assert.AreEqual("SEK", transaction.Currency);
            Assert.AreEqual("Outside a trading venue", transaction.TradingVenue);
            Assert.AreEqual("Current", transaction.Status);
        }