Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Backtesting International ETF Premiums in Python With Point-in-Time Inputs

An international ETF backtest can show excellent premium convergence even when the simulated ETF trades lose money. One common cause is a moving reference value. Another is using a quote or FX update that had occurred at the exchange but had not reached the strategy. A small regression fixture can catch both. This article was drafted using an AI writing tool. The data below is synthetic, and the…

This article discusses a backtesting framework for international ETF premiums using Python and point-in-time inputs. The primary focus is on ensuring accurate data selection and handling late or stale observations. The code provided defines an Observation class to store event and receipt timestamps, as well as the value. The latest_at function filters observations based on a cutoff time and maximum age, selecting the latest eligible observation.

The usd_per_foreign_return function calculates the conversion rate between foreign and USD values, while the premium function computes the premium based on quote and reference values. The short_etf_pnl function calculates the profit and loss (P&L) for a short ETF position. A verify function is included to demonstrate the usage of these functions with example data.

Brief written by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

A read-only SQL dashboard for Laravel

Laravel SQL Dashboard is a self-hosted dashboard in the spirit of Rails' Blazer. Your team saves SQL queries, sees results as tables and charts, and gets alerts. It is built to be safe to leave on.

  • Laravel SQL Dashboard is a self-hosted monitoring tool inspired by Rails' Blazer
  • Users can save queries with typed variables for parameterized execution
  • Dashboard employs read-only transactions and alerts via mail for security

Custom Domain Onboarding: 4 Zone Ownership Checkpoints for Merchant Migration

A merchant can own a custom domain without giving your commerce platform control of its DNS zone. To implement onboarding, establish that ownership boundary before you add the domain or write a…

  • Four zone ownership checkpoints for merchant migration
  • Platform-managed zone: add domain, persist zoneid, upsert record, schedule verification
  • Customer-managed zone: customer performs DNS change as explicit onboarding step

B2C SaaS abroad: When do you actually have to register for VAT/GST?

Getting your first customer from another country is exciting. Someone in Lisbon, whom you've never met, has decided your little SaaS product is worth €12 a month.

  • SaaS businesses selling abroad may face VAT/GST obligations in multiple countries.
  • Thresholds for tax registration vary by country, e.g., Norway and Canada have specific limits.
  • US sales tax rules are complex due to state-level economic nexus requirements.

Inside Meta's Partner Ecosystem: How Governments, Trusted Organizations, and Major Businesses Access Specialized Support

Inside Meta's Partner Ecosystem: How Governments, Trusted Organizations, and Major Businesses Access Specialized Support Understanding Meta's official escalation channels, technical partnerships…

  • Meta offers specialized support channels for various partner categories.
  • Access to these channels depends on partner's role, permissions, products, and eligibility.
  • These channels do not permit reversing enforcement decisions or recovering accounts for others.

More from Monday 23 November →