Add HTTP API and enhance stock mashete