 Hi, so yeah, so my name is Phil and I work at Smarkets and I suspect by now You've probably seen our name and logo over quite a lot of things And it's my pleasure to introduce us to you explain what we do why we're here as a sponsor and Why Python is so very important to us? So to get straight into it Smarkets is at heart an event trading exchange Which means that people use our systems to buy the outcome or sell the outcome of events For the most part this is probably best most well known for sports betting So if for example a lot of people get entertainment out of betting on their favorite team to win Or betting against their friends team to win. So there's a lot of that that goes on But for us we have quite a bit of interest in something called prediction markets And a prediction market is a there's a bit of a misnomer because it often really doesn't predict anything Which I'll get into a minute, but the idea is that you can create a market For an event that's of interest to you people will trade on the outcome of that event And you can see how they're trading to predict what that event will do I'm gonna get into that in just a second explain a bit more but For those of you actually want to know what Smarkets looks like if you come in as a customer and use the site It's like on the right you'll use our website or the apps and you can see you can buy or sell Contracts in an event or we have a trading API and quite a lot of people trade through our site in an automated fashion So coming back to prediction markets So one of the questions you might ask or I would ask here as a topical question is if Scotland has an independence referendum before the year 2020 will they vote to be independent and We have a market on this on our site And that market predicts that they're slightly more likely that they will vote to be independent at this time It's 55% So this is a kind of idea of a prediction market and of course if you think this is wrong You can go trade on this now and you'll make money. So That's a kind of notion for it. It has some utility of course beyond this like it's if there's a general election For example, and you know that one party is coming in and they're gonna raise taxes You may want to come to our exchange and kind of hedge off that cost, which is another idea of doing it So when I've told people about this they've they've often asked well how predictive is it? Did you get the Brexit results? Right? Did you get the Trump results? Right? And I'm afraid to say we didn't but all our markets predicted that Brexit wouldn't happen and Trump wouldn't get elected But I think in comparison to the polls our markets show that there's a lot more uncertainty in the outcome It wasn't as clear-cut as the polls had so I think there's some real value in these markets existing So that's the main parts markets markets is an event exchange We also have a division. Let's say market maker or a trader So this division called Hansen trades on smart kits and various other exchanges And if you imagine what they're trying to do they're trying to always set the right price for the event and the outcomes So in this this graph which hopefully is quite interesting is a game between Tottenham and Crystal Palace And you can see from the start sadly for the Crystal Palace supporters it's not likely that they're gonna win it and But it starts very likely that Tottenham is gonna win as the game goes on This decays as you get towards the end and there's no score the draw becomes more likely and then a goal is scored And you can see it switched around quite a bit and now in the run-up to the end of the match It's very likely that Tottenham will win and through all of this like what the trading entity is doing is pricing these markets And trying to make sure the true probability of the the event is Is close to where they're pricing it or within the bid and I spread for those of you in their financial terms so those are the two divisions really of smart kits and Probably would help a bit if I told you where we sit in the marketplace. So for the sports betting especially in exchange Market there's there's four competitors really the biggest one is bet fair who I suspect you more likely to have heard of There's us. There's matchbook and there's bet back and together. We're probably UK market in betting exchanges We're the second biggest at the moment and we're taking bet fairs market share, which is great for us In addition, like I said, these these prediction markets are very interesting to us There's a company in the US called predict it that just focuses solely on these There's a few others placed around cryptocurrencies in the blockchain We also see them as our competition and us being in that marketplace and we think at the moment We have better liquidities. So our markets are more predictive if you will So that's us as a kind of commercial company I'm gonna quickly tell us tell you a bit about what we're like as a company to work for so this is one of my colleagues Tim sitting in his desk in our London office. She's very close to Tower Bridge So it makes for a nice picture to kind of demonstrate where we are We're about a hundred people now, but one of the really nice things about us is we're very diverse These are all the little dots showing where our colleagues come from. We have about 28 nationalities I think at the moment, although I think it's a bit higher and we have an office in LA in London and a operations office in Walter We think and our employees my colleagues seem to think we've got very nice culture and So this is I've just taken this from Glastor, which is quite nice One of the things I think that everyone seems to like is the foosball tables Which is why we went to sponsor the foosball tables as well downstairs So a lot of my colleagues would probably be very happy to play you at that game if you want to ask them So that's us as a kind of company have a very quick kind of introduction just to let you know who we are I'm gonna say now why we're here and of course we're here as a keystone sponsor and There's lots of reasons to do this lots of business reasons But for me personally the the real aim of being here and being the keystone sponsor is to support the community to give back to the community and kind of Try and join the community really we've reached the stage now where we can start contributing to open source a lot more And we want to start doing this and we want to be kind of known I'll come to that later on So what we've done here is we've brought along an escape room Let's prove very popular. I suspect a lot of you before we've explained it probably thought we did escape rooms Because it's the main thing that people have asked about I'm sad to say there's no slots left But you can try and convince an existing team that you can join them tomorrow So yeah another reason why you might want to make friends at this conference I should say as well that we're hiring of course Like many of the companies we think we've got a very nice interview process We don't like to make people wait. We try and make it very quick We try and make it very pleasant and we've been interviewing here if you're interested Please come to talk to me and my colleagues be fantastic to have some more people Okay, so probably the bit you're really interested in there is why we care about smarket by Python And why we're here in that regard and it in some respects is a bit of tautology for me because Python is kind of the Hearts markets we're over two-thirds of our code base is Python and our other language is a JavaScript Which is the front-end and C++ and Erlang which we build the very latency critical systems So I'm gonna gonna go through some things that we've done in Python. We think you're interesting I can only really skirt the surface of them because I don't have enough time But if you're interested in any of these details, please come talk to me my colleagues. I can go into more So the first thing is like I suspect most people here you've got to go through the Python 2 to Python 3 transition and We did this some time ago And I think we learned quite a bit if you'd like to if you're going for it yourself I can hopefully give you some good advice. We started in 2015. We completed the year after in 2016 And now these past couple of weeks were actually moving from three six to three seven So we're quite happy with that and hopefully I'll never have to write Python 2 again In the ads that we put out I included this bit of code I tried to include this bit of code to kind of give a few examples of the things we're really Interested in at the moment to kind of spark some some comments So a lot of my colleagues are very keen on us moving to three seven Just so we can use data classes. I know there's a talk earlier today about it So hopefully the rest of you have all seen how good this is But this is one of the big keys for us for moving so quickly In addition a few years ago We decided that all our codes which should be type hinted and for about the last two years now We've been typing in every line of code we've added So there's only one bit here, which is the Jason's response part that really demonstrates that we were doing that for quite some time So I think we've got a lot of knowledge of how to do this in practice We gave some talks at the pike on UK a couple of years ago if you want to look it up or again come ask me And the final thing we've been getting into very recently because we have a lot of web Microservices is a sync IO based systems and there was a talk I'll come to in a minute But this is something we're really trying to push and so that was the last bit I was trying to get across in this little snippet. So I can't really go into details. Sorry, but Some of my colleagues having talks I referenced in a second, but if you'd like to ask me please do Okay, so we gave some talks we started with a workshop on Tuesday Which explained and led people through building an actual sports trading bot that traded on Smarkets, and I think a number of you actually got to the stage where your bots were trading on Smarkets I don't know how many of you made money or how it worked, but it definitely Got to that stage and all the code and the talks are obviously available and you can go take a look Yesterday we gave a talk on ETL pipelines Particularly for us is the accounting pipeline Because we're a fintech company and we get audited a lot So the upgrades and what we did to that pipeline made a big difference to us and is about explained how we did it We also spoke yesterday about how we're starting to do introduce a sync IO into production and at this conference It seems very topical. So hopefully that was a very interesting talk to those who saw it and then today We spoke about how to keep master always green using one of our open source projects called Margebot and And it's the open source projects that I want to finish on it going back to why we're here trying to contribute back to the community We're trying to do this for open source as well So we have two projects that we maintain as a company one is called flakate strict Which is a very opinion-inted linter So for those of you who like glinting this one takes it a bit further and there's a blog post that explains it Like I said a second ago, there's Margebot, which you can also go and use and see that talk and I should say all of these and the details of them available on our blog, which is markets HQ come The final thing I should say that we've been doing is we funded This is David McClive on the right and he's the author of the hypothesis framework Which I think a lot of you really enjoy using for testing and we funded him to do two projects on hypothesis and We think that went very well. So it's something we probably look at doing again in the future So if you think you've got an interesting open source project and you want to come talk to me about possible funding take Ideas, then please do So that's how we're trying to get back and hopefully now, you know why we're here whose markets are and What we're up to so I'd like to thank the organizers for let me explain ourselves to you We're not very big company. So I think it was quite important and thank you for the rest of you for listening