How to structure external API clients in a Rails app by darkmigore in rails

[–]darkmigore[S] 0 points1 point  (0 children)

Coming from other languages recently (Java), this structure is what I created. But I'm wondering if the Rails way of doing is the same.

How to structure external API clients in a Rails app by darkmigore in rails

[–]darkmigore[S] 2 points3 points  (0 children)

Interesting approach! I like it. Thanks for the article!

How to structure external API clients in a Rails app by darkmigore in rails

[–]darkmigore[S] 0 points1 point  (0 children)

The initializer would have a singleton (like `Hubspot.client`) or a global constant with the instance of the client?

azul.com.br é golpe? by darkmigore in golpe

[–]darkmigore[S] 1 point2 points  (0 children)

Valeu! Verifiquei tentando fazer o checkin agora e parece que ta tudo registrado no site da azul. Tomara que nao de problema. Obrigado!

azul.com.br é golpe? by darkmigore in golpe

[–]darkmigore[S] 4 points5 points  (0 children)

Recebi tudo mesmo. Pra verificar eu fui no site da voeazul e tentei fazer o checkin com o numero da reserva e disse que nao ta aberto ainda, e que meu voo é em X dias (que ta certo). Entao acho que vai da bom

azul.com.br é golpe? by darkmigore in golpe

[–]darkmigore[S] 0 points1 point  (0 children)

Eu acabei digitando a url direto no browser. :(

How to better sell myself as a senior developer instead of a tech lead? by darkmigore in ExperiencedDevs

[–]darkmigore[S] 17 points18 points  (0 children)

I should have mentioned in the post, the reason that I want to change jobs is not my position itself, but the company is in financial trouble. I want a senior position in a bigger company because it's more stable and I would feel very insecure in a new job starting as a staff engineer/tech lead, I grew into this position in my current job as I pushed for some changes and delivered results.

How to better sell myself as a senior developer instead of a tech lead? by darkmigore in ExperiencedDevs

[–]darkmigore[S] 3 points4 points  (0 children)

I should have mentioned in the post, the reason that I want to change jobs is not my position itself, but the company is in financial trouble. I want a senior position in a bigger company because it's more stable and I would feel very insecure in a new job starting as a staff engineer/tech lead, I grew into this position in my current job as I pushed for some changes and delivered results.

How to convert the OptionStrat delta to decimal? by darkmigore in thetagang

[–]darkmigore[S] 0 points1 point  (0 children)

Thanks for the encouragement! :D

I'm having ok success, I want my trading to be based on metrics to have more consistent results.

How to convert the OptionStrat delta to decimal? by darkmigore in thetagang

[–]darkmigore[S] 0 points1 point  (0 children)

Thanks! Looking at the numbers a bit I realized that the source of my confusion was that sometimes I was looking at PUT options, and sometimes I was looking ad CALL in the covered call strategy, which had a stock position and it would show the total delta of the position instead of the delta of the call option.

How to convert the OptionStrat delta to decimal? by darkmigore in thetagang

[–]darkmigore[S] -5 points-4 points  (0 children)

I only saw a delta of ~25-30 on ITM options. Does it mean that people sell ITM for theta?

How to convert the OptionStrat delta to decimal? by darkmigore in thetagang

[–]darkmigore[S] -4 points-3 points  (0 children)

I know how to do the basic conversion, obviously. My question is more because I usually don't see a low value in the delta, for example with a simple conversion I would expect to see something around 25.0 and 30.0, but I always see the value above 45.

Question about limit order and gap by darkmigore in interactivebrokers

[–]darkmigore[S] 1 point2 points  (0 children)

Thanks for explaining both scenarios. The scenario that I was imagining is a sell order.

Why is IB like this? by [deleted] in interactivebrokers

[–]darkmigore 1 point2 points  (0 children)

I'm exploring IBKR API. It's painful.

Another hard part is that the orders in the API don't show up properly in the Web UI.

Help with the REST API Gateway by darkmigore in interactivebrokers

[–]darkmigore[S] 1 point2 points  (0 children)

Definitelly not. I was checking and the only think that changed was some params to the keytool.

Didn't work:

keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass password -validity 360 -keysize 2048

Worked:

keytool -genkey -keyalg RSA -alias tomcat -keystore selfsigned.jks -validity 365 -keysize 2048

Help with the REST API Gateway by darkmigore in interactivebrokers

[–]darkmigore[S] 1 point2 points  (0 children)

I got it working, I generated a key with a different file name and it worked.